Enfore semicolon for class properties

This commit is contained in:
Andrey Okonetchnikov 2016-10-03 16:34:48 +02:00
parent 4010a16a76
commit 4c50952131
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,10 @@ env:
es6: true
parser: babel-eslint
plugins: [ "react" ]
plugins: [
"react",
"class-property"
]
rules:
# Possible Errors
@ -97,6 +100,8 @@ rules:
react/self-closing-comp: 1
react/sort-comp: 1
class-property/class-property-semicolon: 2
# Global scoped method and vars
globals:
netlify: true

View File

@ -42,6 +42,7 @@
"babel-runtime": "^6.5.0",
"css-loader": "^0.23.1",
"eslint": "^3.5.0",
"eslint-plugin-class-property": "^1.0.1",
"eslint-plugin-react": "^5.1.1",
"expect": "^1.20.2",
"exports-loader": "^0.6.3",