Skip to content

Commit 29e2658

Browse files
committed
Add eslint file
Attempts to pattern what has been in use by Codacy. Currently, it eliminates support for IE10 and below, and some aspects of our code eliminate IE11, leaving Edge as the only supported MS browser. I don't think this is intentional.
1 parent 91cdb5f commit 29e2658

File tree

2 files changed

+104
-0
lines changed

2 files changed

+104
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
8+
[*.{js,py}]
9+
indent_size = 4

.eslintrc

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"jquery": true
6+
},
7+
"globals": {
8+
"alert": true
9+
},
10+
"rules": {
11+
"arrow-parens": 2,
12+
"block-scoped-var": 1,
13+
"brace-style": 2,
14+
"camelcase": 1,
15+
"comma-spacing": 2,
16+
"curly": [2, "multi-line", "consistent"],
17+
"eqeqeq": 2,
18+
"indent": [
19+
2,
20+
4,
21+
{
22+
"SwitchCase": 1
23+
}
24+
],
25+
"keyword-spacing": 2,
26+
"linebreak-style": 2,
27+
"new-cap": 2,
28+
"no-dupe-args": 2,
29+
"no-dupe-class-members": 2,
30+
"no-dupe-keys": 2,
31+
"no-duplicate-case": 2,
32+
"no-caller": 2,
33+
"no-class-assign": 2,
34+
"no-cond-assign": 2,
35+
"no-const-assign": 2,
36+
"no-console": 2,
37+
"no-debugger": 2,
38+
"no-delete-var": 2,
39+
"no-empty": 2,
40+
"no-eval": 2,
41+
"no-extend-native": 2,
42+
"no-extra-boolean-cast": 2,
43+
"no-extra-semi": 2,
44+
"no-fallthrough": [
45+
2,
46+
{
47+
"commentPattern": "break[\\s\\w]*omitted"
48+
}
49+
],
50+
"no-implied-eval": 2,
51+
"no-invalid-regexp": 2,
52+
"no-irregular-whitespace": 2,
53+
"no-iterator": 2,
54+
"no-loop-func": 2,
55+
"no-mixed-operators": 2,
56+
"no-mixed-spaces-and-tabs": 2,
57+
"no-multi-str": 2,
58+
"no-new": 2,
59+
"no-obj-calls": 2,
60+
"no-octal": 2,
61+
"no-redeclare": 2,
62+
"no-regex-spaces": 2,
63+
"no-script-url": 2,
64+
"no-sparse-arrays": 2,
65+
"no-undef": 2,
66+
"no-undefined": 2,
67+
"no-unreachable": 2,
68+
"no-unsafe-negation": 2,
69+
"no-unused-vars": 2,
70+
"no-use-before-define": [
71+
2,
72+
{
73+
"classes": false,
74+
"functions": false
75+
}
76+
],
77+
"quotes": [
78+
2,
79+
"double"
80+
],
81+
"require-yield": 2,
82+
"semi": [
83+
2,
84+
"always"
85+
],
86+
"space-unary-ops": 2,
87+
"use-isnan": 2,
88+
"valid-typeof": 2,
89+
"wrap-iife": [
90+
2,
91+
"any"
92+
],
93+
"yield-star-spacing": 2
94+
}
95+
}

0 commit comments

Comments
 (0)