Skip to content

Commit

Permalink
Switch from jshint to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed May 16, 2018
1 parent 24c3538 commit 3ccb1ce
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parserOptions": {
"sourceType": "module"
},
"globals": {
"ArrayBuffer": true,
"DataView": true,
"Promise": true,
"Symbol": true,
"Uint8Array": true
},
"extends": [
"plugin:github/browser"
],
"rules": {
"object-shorthand": "off"
}
}
25 changes: 0 additions & 25 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test: node_modules/ lint
./script/test

lint: node_modules/
./node_modules/.bin/jshint *.js test/*.js
./node_modules/.bin/eslint --report-unused-disable-directives *.js test/*.js

node_modules/:
npm install
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"license": "MIT",
"devDependencies": {
"chai": "1.10.0",
"jshint": "2.8.0",
"eslint": "^4.19.1",
"eslint-plugin-github": "^1.0.0",
"mocha": "2.1.0",
"mocha-phantomjs-core": "2.0.1",
"promise-polyfill": "6.0.2",
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')

0 comments on commit 3ccb1ce

Please sign in to comment.