Skip to content

Commit

Permalink
Merge pull request #74 from feross/v10
Browse files Browse the repository at this point in the history
Rule changes for standard v10
  • Loading branch information
feross authored Mar 2, 2017
2 parents 672d7b8 + e5cf63a commit 09248c2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 @@ -108,6 +115,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 @@ -127,7 +135,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 @@ -165,10 +173,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
Original file line number Diff line number Diff line change
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

0 comments on commit 09248c2

Please sign in to comment.