Created
October 15, 2016 00:37
-
-
Save mormahr/e6af53438a9bae9b9fe8905cc938b77d to your computer and use it in GitHub Desktop.
Comma-Dangle Bug ESLint v3.8.0 - Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"plugins": [ | |
"transform-flow-comments", | |
"transform-function-bind", | |
"transform-async-to-generator", | |
"transform-exponentiation-operator", | |
"transform-class-properties", | |
"transform-es2015-destructuring", | |
"transform-es2015-spread", | |
"transform-es2015-parameters", | |
"transform-object-rest-spread", | |
"transform-es2015-classes", | |
"transform-es2015-modules-commonjs" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module" | |
}, | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"plugins": [ | |
"flowtype", | |
"flow-vars" | |
], | |
"extends": "eslint:recommended", | |
"rules": { | |
"comma-dangle": [ | |
"error", | |
"always-multiline" | |
], | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "cdb", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"babel-eslint": "^7.0.0", | |
"babel-plugin-transform-async-to-generator": "^6.8.0", | |
"babel-plugin-transform-class-properties": "^6.8.0", | |
"babel-plugin-transform-es2015-classes": "^6.8.0", | |
"babel-plugin-transform-es2015-destructuring": "^6.8.0", | |
"babel-plugin-transform-es2015-modules-commonjs": "^6.8.0", | |
"babel-plugin-transform-es2015-parameters": "^6.8.0", | |
"babel-plugin-transform-es2015-spread": "^6.8.0", | |
"babel-plugin-transform-exponentiation-operator": "^6.8.0", | |
"babel-plugin-transform-flow-comments": "^6.8.0", | |
"babel-plugin-transform-function-bind": "^6.8.0", | |
"babel-plugin-transform-object-rest-spread": "^6.8.0", | |
"babel-plugin-transform-react-jsx": "^6.8.0", | |
"eslint": "^3.8.0", | |
"eslint-plugin-flow-vars": "^0.5.0", | |
"eslint-plugin-flowtype": "^2.20.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class AntragsEvent { | |
id: ?string | |
rest: any | |
constructor({ | |
id, | |
...rest, | |
}: { | |
id?: string, | |
}) { | |
this.id = id | |
this.rest = rest | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment