Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Switch from jshint to eslint
- Loading branch information
Showing
with
22 additions
and
27 deletions.
-
+18
−0
.eslintrc.json
-
+0
−25
.jshintrc
-
+1
−1
Makefile
-
+2
−1
package.json
-
+1
−0
prettier.config.js
|
|
@@ -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" |
|
|
} |
|
|
} |
Oops, something went wrong.
|
|
@@ -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 |
|
|
|
|
|
@@ -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", |
|
|
|
|
|
@@ -0,0 +1 @@ |
|
|
module.exports = require('eslint-plugin-github/prettier.config') |