Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit c3ecd25

Browse files
committed
Fix styling issues per eslint
This fixes *most* of the issues present. There're some ones which are more deeply rooted...
1 parent 7c13e0e commit c3ecd25

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+9281
-9380
lines changed

.eslintrc.json

+42-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,50 @@
1313
"rules": {
1414
"no-console": 0,
1515

16-
"semi": ["error", "always"],
17-
1816
"array-callback-return": 2,
1917
"curly": ["error", "all"],
2018
"eqeqeq": ["error", "allow-null"],
21-
"dot-notation": 2
19+
"dot-notation": 2,
20+
21+
// style
22+
23+
"array-bracket-spacing": ["error", "never"],
24+
// block-spacing?
25+
"brace-style": ["error", "stroustrup"],
26+
"camelcase": 2,
27+
"comma-spacing": 2,
28+
"comma-style": 2,
29+
"computed-property-spacing": 2,
30+
// consistent-this?
31+
"eol-last": 2,
32+
"indent": ["error", 4],
33+
"key-spacing": ["error", {
34+
"mode": "minimum"
35+
}],
36+
"keyword-spacing": 2,
37+
// linebreak-style?
38+
"max-len": ["warn", 80],
39+
// other max-*?
40+
"no-array-constructor": 2,
41+
"no-inline-comments": 2,
42+
"no-lonely-if": 2,
43+
"no-multiple-empty-lines": 1,
44+
"no-nested-ternary": 2,
45+
"no-new-object": 2,
46+
"no-plusplus": 2,
47+
// no-restricted-syntax maybe? discourage `with`?
48+
"no-trailing-spaces": 2, // !!!!!!!!!!!!!!!!!!!
49+
"no-spaced-func": 2,
50+
"no-unneeded-ternary": 2,
51+
"no-whitespace-before-property": 2,
52+
"object-curly-spacing": ["error", "always"],
53+
// operator-linebreak? operator-assignment?
54+
"quote-props": ["error", "as-needed"],
55+
"quotes": ["error", "single"],
56+
"semi": ["error", "always"],
57+
"space-in-parens": ["error", "never"],
58+
"spaced-comment": ["error", "always", {
59+
"markers": ["global"]
60+
}]
2261
}
2362
}

0 commit comments

Comments
 (0)