Skip to content

Commit

Permalink
Update plugins and add some new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 27, 2018
1 parent d1eb47c commit cec0853
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion config/plugins.js
Expand Up @@ -31,7 +31,9 @@ module.exports = {
'no-use-extend-native/no-use-extend-native': 'error',
'promise/param-names': 'error',
'promise/no-return-wrap': ['error', {allowReject: true}],
'promise/no-new-statics': 'error',
'promise/no-return-in-finally': 'error',
'promise/valid-params': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': ['error', {
Expand All @@ -44,6 +46,8 @@ module.exports = {
'import/namespace': ['error', {allowComputed: true}],
'import/no-absolute-path': 'error',
'import/no-webpack-loader-syntax': 'error',
'import/no-self-import': 'error',
'import/no-useless-path-segments': 'error',
'import/newline-after-import': 'error',
'import/no-amd': 'error',
'import/no-duplicates': 'error',
Expand Down Expand Up @@ -78,7 +82,7 @@ module.exports = {
'node/process-exit-as-throw': 'error',
// Disabled as the rule doesn't exclude scripts executed with `node` but not referenced in "bin". See https://github.com/mysticatea/eslint-plugin-node/issues/96
// 'node/shebang': 'error',
'node/no-deprecated-api': 'error',
'node/no-deprecated-api': 'error'
// Disabled because it causes too much churn and will be moot when we switch to ES2015 modules
// 'node/exports-style': ['error', 'module.exports']
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -58,12 +58,12 @@
"eslint-config-xo": "^0.22.0",
"eslint-formatter-pretty": "^1.3.0",
"eslint-plugin-ava": "^4.5.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-no-use-extend-native": "^0.3.12",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-unicorn": "^4.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-unicorn": "^4.0.3",
"get-stdin": "^6.0.0",
"globby": "^8.0.0",
"has-flag": "^3.0.0",
Expand Down

0 comments on commit cec0853

Please sign in to comment.