Skip to content

Commit

Permalink
chore(*) setup eslint latest
Browse files Browse the repository at this point in the history
* Wont work on eslint@4 - only `yarn upgrade eslint@^3.x.x`
* Using eslint-config-airbnb containing both js/es6 AND react eslint rules (not like eslint-config-airbnb-base) - relies on eslint-plugin-jsx-a11y
  • Loading branch information
topheman committed Jun 23, 2017
1 parent 8840b67 commit 82ee9c7
Show file tree
Hide file tree
Showing 3 changed files with 481 additions and 446 deletions.
24 changes: 18 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"env": {
"mocha": true,
"jasmine": true,
"protractor": true
"protractor": true,
"browser": true
},
"globals": {
"goToUrl": true,
Expand All @@ -18,9 +19,20 @@
"no-console": 0,
"padded-blocks": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"spaced-comment": 1
},
"plugins":[
"react"
]
"spaced-comment": 1,
"max-len": 0,
"arrow-parens": 0,
"react/forbid-prop-types": 0,
"no-mixed-operators": 0,
"react/jsx-filename-extension": 0,
"no-confusing-arrow": 0,
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"no-return-assign": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"import/no-extraneous-dependencies": 0, // needed in case of using some devDependencies
"import/prefer-default-export": 0,
"global-require": 0,
"react/require-default-props": 0 // @todo enforce it ?
}
}
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"jest": "./node_modules/.bin/jest",
"start": "DEVTOOLS=true npm run webpack",
"lint": "./node_modules/.bin/eslint src test",
"lint-fix": "./node_modules/.bin/eslint --fix src --ext .js",
"lint-watch": "./node_modules/.bin/esw --watch src test",
"clean-dist": "node ./bin/clean-dist.js",
"serve-build": "echo 'Serving distribution folder build/dist' && npm run serve-dist",
Expand All @@ -35,7 +36,7 @@
"license": "MIT",
"devDependencies": {
"babel-core": "^6.5.2",
"babel-eslint": "^5.0.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^6.2.3",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-transform-class-properties": "^6.6.0",
Expand All @@ -46,10 +47,12 @@
"css-loader": "^0.23.1",
"csv-parse": "^1.2.0",
"del": "^2.2.0",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^1.0.2",
"eslint-loader": "^1.3.0",
"eslint-plugin-react": "^3.16.1",
"eslint": "^3.x.x",
"eslint-config-airbnb": "^15.0.1",
"eslint-loader": "^1.8.0",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-react": "^7.1.0",
"eslint-watch": "^2.1.4",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.8.4",
Expand Down
Loading

0 comments on commit 82ee9c7

Please sign in to comment.