lint: default to ecmaVersion: 6, keep ecmaVersion: 5 for client/
This commit is contained in:
parent
7f6dfe1652
commit
204e5e4ee4
@ -7,6 +7,9 @@ env:
|
|||||||
mocha: true
|
mocha: true
|
||||||
node: true
|
node: true
|
||||||
|
|
||||||
|
parserOptions:
|
||||||
|
ecmaVersion: 6
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
block-spacing: [2, always]
|
block-spacing: [2, always]
|
||||||
brace-style: [2, 1tbs]
|
brace-style: [2, 1tbs]
|
||||||
|
@ -24,7 +24,9 @@
|
|||||||
"test": "npm-run-all -c test:mocha lint",
|
"test": "npm-run-all -c test:mocha lint",
|
||||||
"test:mocha": "mocha -r test/fixtures/env.js test/**/*.js",
|
"test:mocha": "mocha -r test/fixtures/env.js test/**/*.js",
|
||||||
"lint": "npm-run-all -c lint:js lint:css",
|
"lint": "npm-run-all -c lint:js lint:css",
|
||||||
"lint:js": "eslint .",
|
"lint:js": "npm-run-all -c lint:js:es5 lint:js:es6",
|
||||||
|
"lint:js:es5": "eslint --parser-options=\"ecmaVersion:5\" client/",
|
||||||
|
"lint:js:es6": "eslint --ignore-pattern client/ .",
|
||||||
"lint:css": "stylelint \"**/*.css\"",
|
"lint:css": "stylelint \"**/*.css\"",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user