Add ESLint.
This commit is contained in:
parent
4315a28f0c
commit
e8c27056de
2 changed files with 23 additions and 2 deletions
13
.eslintrc.js
Normal file
13
.eslintrc.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
module.exports = {
|
||||||
|
env: {
|
||||||
|
es6: true,
|
||||||
|
mocha: true,
|
||||||
|
node: true
|
||||||
|
},
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 2017
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"no-unused-vars": "warn"
|
||||||
|
}
|
||||||
|
};
|
12
package.json
12
package.json
|
@ -13,11 +13,16 @@
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nodeguy/assert": "0.1.4",
|
"@nodeguy/assert": "0.1.4",
|
||||||
|
"eslint": "4.12.1",
|
||||||
"mocha": "4.0.1",
|
"mocha": "4.0.1",
|
||||||
"nyc": "11.3.0"
|
"nyc": "11.3.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/NodeGuy/channel",
|
"homepage": "https://github.com/NodeGuy/channel",
|
||||||
"keywords": ["CSP", "channel", "concurrency"],
|
"keywords": [
|
||||||
|
"CSP",
|
||||||
|
"channel",
|
||||||
|
"concurrency"
|
||||||
|
],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -33,6 +38,9 @@
|
||||||
"functions": 100,
|
"functions": 100,
|
||||||
"lines": 100,
|
"lines": 100,
|
||||||
"statements": 100,
|
"statements": 100,
|
||||||
"reporter": ["html", "text-summary"]
|
"reporter": [
|
||||||
|
"html",
|
||||||
|
"text-summary"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue