Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule changes for standard v10 #74

Merged
merged 12 commits into from Mar 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -32,7 +32,7 @@ official ESLint website.
To use the JavaScript Standard Style shareable config, first run this:

```bash
npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise
npm install --save-dev eslint-config-standard eslint-plugin-standard eslint-plugin-promise eslint-plugin-import
```

Then, add this to your .eslintrc file:
Expand Down
34 changes: 26 additions & 8 deletions eslintrc.json
Expand Up @@ -14,8 +14,10 @@
},

"plugins": [
"standard",
"promise"
"import",
"node",
"promise",
"standard"
],

"globals": {
Expand All @@ -30,7 +32,13 @@
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", { "properties": "never" }],
"comma-dangle": ["error", "never"],
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"constructor-super": "error",
Expand Down Expand Up @@ -59,7 +67,6 @@
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "error",
"no-eval": "error",
Expand Down Expand Up @@ -109,6 +116,7 @@
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-return-assign": ["error", "except-parens"],
"no-return-await": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
Expand All @@ -128,7 +136,7 @@
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"no-unused-vars": ["error", { "vars": "all", "args": "none" }],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }],
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": false }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
Expand Down Expand Up @@ -166,10 +174,20 @@
"yield-star-spacing": ["error", "both"],
"yoda": ["error", "never"],

"standard/object-curly-even-spacing": ["error", "either"],
"import/export": "error",
"import/first": "error",
"import/no-absolute-path": "error",
"import/no-duplicates": "error",
"import/no-webpack-loader-syntax": "error",

"node/no-deprecated-api": "error",
"node/process-exit-as-throw": "error",

"promise/param-names": "error",

"standard/array-bracket-even-spacing": ["error", "either"],
"standard/computed-property-even-spacing": ["error", "even"],

"promise/param-names": "error"
"standard/no-callback-literal": "error",
"standard/object-curly-even-spacing": ["error", "either"]
}
}
12 changes: 8 additions & 4 deletions package.json
Expand Up @@ -12,8 +12,10 @@
},
"devDependencies": {
"eslint": "^3.8.1",
"eslint-plugin-promise": "^3.3.0",
"eslint-plugin-standard": "^2.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.1.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^2.0.1",
"tape": "^4.6.0"
},
"homepage": "https://github.com/feross/eslint-config-standard",
Expand Down Expand Up @@ -47,8 +49,10 @@
"main": "index.js",
"peerDependencies": {
"eslint": ">=3.8.1",
"eslint-plugin-promise": ">=3.3.0",
"eslint-plugin-standard": ">=2.0.0"
"eslint-plugin-import": ">=2.2.0",
"eslint-plugin-node": ">=4.1.0",
"eslint-plugin-promise": ">=3.5.0",
"eslint-plugin-standard": ">=2.0.1"
},
"repository": {
"type": "git",
Expand Down