Skip to content

Commit 9362208

Browse files
committed
Add ESLint with Standard
1 parent 11e5e29 commit 9362208

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.eslintrc.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root: true
2+
3+
extends:
4+
- "standard"
5+
6+
parserOptions:
7+
ecmaVersion: 9
8+
sourceType: "module"
9+
10+
env:
11+
node: true
12+
es6: true
13+
14+
rules:
15+
comma-dangle:
16+
- error
17+
- always-multiline

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Checks for the presence of URL protocol without a slashes (colon-slash-slash)",
55
"main": "index.js",
66
"scripts": {
7-
"test": "ava"
7+
"lint": "eslint .",
8+
"lint:fix": "npm run lint -- --fix",
9+
"test": "npm run lint && ava"
810
},
911
"engines": {
1012
"node": ">=0.10"
@@ -33,6 +35,12 @@
3335
},
3436
"homepage": "https://github.com/Arttse/node.is-url-protocol-without-slashes#readme",
3537
"devDependencies": {
36-
"ava": "^1.3.1"
38+
"ava": "^1.3.1",
39+
"eslint": "^5.15.1",
40+
"eslint-config-standard": "^12.0.0",
41+
"eslint-plugin-import": "^2.16.0",
42+
"eslint-plugin-node": "^8.0.1",
43+
"eslint-plugin-promise": "^4.0.1",
44+
"eslint-plugin-standard": "^4.0.0"
3745
}
3846
}

0 commit comments

Comments
 (0)