diff --git a/.eslintrc b/.eslintrc index 8f6cd62a..4d30170d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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 diff --git a/package.json b/package.json index 21d378f9..5c27e180 100644 --- a/package.json +++ b/package.json @@ -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",