Skip to content

Commit

Permalink
Switch to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jul 5, 2018
1 parent a3c6c3d commit 6c1cccf
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 47 deletions.
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parserOptions": {
"sourceType": "module"
},
"globals": {
"Yetch": true,
"ArrayBuffer": true,
"DataView": true,
"Promise": true,
"Symbol": true,
"Uint8Array": true
},
"extends": [
"plugin:github/browser"
],
"rules": {
"object-shorthand": "off"
},
"overrides": [
{
"files": ["test/*.js"],
"env": {
"browser": true,
"mocha": true
},
"globals": {
"assert": true,
"chai": true,
"FileReaderSync": true
}
},
{
"files": ["test/{karma,server}*.js"],
"env": {
"node": true
}
},
{
"files": ["test/worker.js"],
"env": {
"worker": true
}
}
]
}
26 changes: 0 additions & 26 deletions .jshintrc

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"@types/node": "^10.1.2",
"abortcontroller-polyfill": "^1.1.9",
"chai": "^4.1.2",
"jshint": "2.8.0",
"eslint": "^4.19.1",
"eslint-plugin-github": "^1.0.0",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
Expand All @@ -40,7 +41,7 @@
"build": "npm run build:cjs && npm run build:bundle",
"build:bundle": "rollup -c",
"build:cjs": "tsc -p ./src",
"lint": "jshint src/**/*.js test/*.js",
"lint": "eslint --report-unused-disable-directives *.js test/*.js",
"karma": "karma start ./test/karma.config.js --no-single-run --auto-watch",
"pretest": "npm run lint && npm run build",
"test": "karma start ./test/karma.config.js && karma start ./test/karma-worker.config.js"
Expand Down
1 change: 1 addition & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('eslint-plugin-github/prettier.config')
19 changes: 0 additions & 19 deletions test/.jshintrc

This file was deleted.

0 comments on commit 6c1cccf

Please sign in to comment.