Skip to content

Commit

Permalink
Run eslint also on spec/
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed May 12, 2019
1 parent 54d2692 commit 4ac33ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "npm run test:karma -- --single-run && npm run lint",
"test:karma": "karma start spec/karma.conf.js",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint 'src/**' '*.js'",
"lint:js": "eslint $(git ls-files '*.js')",
"lint:css": "prettier --list-different '*.css'",
"fix:style": "prettier --write $(git ls-files '*.js' '*.css')",
"publish": "sh ./scripts/publish.sh",
Expand Down
7 changes: 7 additions & 0 deletions spec/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
env:
mocha: true

globals:
expect: true
L: true
sinon: true
1 change: 1 addition & 0 deletions spec/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-env node */
module.exports = function(config) {
config.set({
plugins: ['karma-mocha', 'karma-sinon', 'karma-expect', 'karma-phantomjs-launcher'],
Expand Down

0 comments on commit 4ac33ad

Please sign in to comment.