Skip to content

Commit

Permalink
update eslint to use keystone config
Browse files Browse the repository at this point in the history
  • Loading branch information
jossmac committed Aug 3, 2016
1 parent 45eca10 commit dda9a58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 43 deletions.
47 changes: 6 additions & 41 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,43 +1,8 @@
{
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": 0,
"curly": [2, "multi-line"],
"jsx-quotes": 1,
"key-spacing": 0,
"no-multi-spaces": 0,
"no-underscore-dangle": 0,
"object-curly-spacing": [1, "always"],
"quotes": [2, "single", "avoid-escape"],
"react/display-name": 0,
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 0,
"react/no-unknown-property": 1,
"react/prop-types": [1, { "ignore": "children" }],
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1,
"semi": 2,
"strict": 0
}
"extends": [
"keystone"
],
"rules": {
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
},
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
},
"devDependencies": {
"babel": "^5.8.23",
"eslint": "^1.10.3",
"eslint-plugin-react": "^3.16.1",
"eslint": "^2.13.1",
"eslint-config-keystone": "^2.4.0",
"eslint-plugin-react": "^5.2.2",
"glob": "^7.0.5",
"gulp": "^3.9.1",
"isparta": "^4.0.0",
Expand Down

0 comments on commit dda9a58

Please sign in to comment.