Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit f341f68

Browse files
committed
add eslint config
1 parent d6d4bf9 commit f341f68

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 6,
4+
"sourceType": "browser"
5+
},
6+
"extends": "eslint:recommended",
7+
"env": {
8+
"browser": true,
9+
"es6": true,
10+
"greasemonkey": true,
11+
"jquery": true
12+
},
13+
"globals": {
14+
},
15+
"rules": {
16+
"no-global-assign": "off",
17+
"no-cond-assign": "off",
18+
"no-console": "off",
19+
20+
"eqeqeq": ["error", "always"],
21+
"yoda": 1,
22+
23+
"no-unused-vars": "off",
24+
"no-trailing-spaces": "error",
25+
"quotes": ["error", "single"],
26+
27+
"no-var": "error",
28+
"prefer-const": "error",
29+
"prefer-numeric-literals": "error",
30+
"prefer-template": "error"
31+
},
32+
"root": true
33+
}

0 commit comments

Comments
 (0)