Skip to content

Commit

Permalink
lint: default to ecmaVersion: 6, keep ecmaVersion: 5 for client/
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed Sep 6, 2016
1 parent 7f6dfe1 commit 204e5e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc.yml
Expand Up @@ -7,6 +7,9 @@ env:
mocha: true
node: true

parserOptions:
ecmaVersion: 6

rules:
block-spacing: [2, always]
brace-style: [2, 1tbs]
Expand Down
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -24,7 +24,9 @@
"test": "npm-run-all -c test:mocha lint",
"test:mocha": "mocha -r test/fixtures/env.js test/**/*.js",
"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\"",
"prepublish": "npm run build"
},
Expand Down

0 comments on commit 204e5e4

Please sign in to comment.