Skip to content

Commit 3ac6628

Browse files
committed
feat(eslint): eslint rules updated to v2.6.0
1 parent e6e05ac commit 3ac6628

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"no-unused-labels": 2,
115115
"no-useless-call": 2,
116116
"no-useless-concat": 2,
117+
"no-useless-escape": 2,
117118
"no-void": 2,
118119
"no-warning-comments": 1,
119120
"no-with": 2,
@@ -197,6 +198,7 @@
197198
"max-nested-callbacks": 2,
198199
"max-params": 2,
199200
"max-statements": 2,
201+
"max-statements-per-line": [2, {"max": 3}],
200202
"new-cap": 2,
201203
"new-parens": 2,
202204
"newline-after-var": 2,
@@ -279,6 +281,7 @@
279281
"no-confusing-arrow": 2,
280282
"no-const-assign": 2,
281283
"no-dupe-class-members": 2,
284+
"no-duplicate-imports": [2, {"includeExports": true}],
282285
"no-new-symbol": 2,
283286
"no-this-before-super": 2,
284287
"no-useless-constructor": 2,

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"description": "Valor Software's ESLint config, following our styleguide",
55
"main": "index.js",
66
"scripts": {
7-
"changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -p angular",
8-
"github-release": "conventional-github-releaser -p angular -r 0",
9-
"postversion": "git push origin master && git push --tags",
10-
"test": "npm run lint && ./node_modules/.bin/mocha",
11-
"lint": "./node_modules/.bin/eslint --ignore-path .gitignore --ext js --fix . .config"
7+
"flow.changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -p angular -v",
8+
"flow.github-release": "./node_modules/.bin/conventional-github-releaser -p angular",
9+
"flow.lint": "./node_modules/.bin/eslint --ignore-path .gitignore --ext js --fix . .config",
10+
"test": "npm run flow.lint && ./node_modules/.bin/mocha",
11+
"preversion": "npm test",
12+
"version": "npm run flow.changelog && git add -A",
13+
"postversion": "git push origin master && git push --tags"
1214
},
1315
"repository": {
1416
"type": "git",
@@ -30,7 +32,7 @@
3032
},
3133
"homepage": "https://github.com/valor-software/eslint-config-valorsoft#readme",
3234
"dependencies": {
33-
"eslint": "2.4.0"
35+
"eslint": "2.6.0"
3436
},
3537
"devDependencies": {
3638
"chai": "3.5.0",

0 commit comments

Comments
 (0)