Skip to content

Commit 3cedd25

Browse files
committed
fix(linting): Adding standard linting rules
1 parent bdb4de0 commit 3cedd25

File tree

102 files changed

+7320
-5995
lines changed

Some content is hidden

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

102 files changed

+7320
-5995
lines changed

.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# http://editorconfig.org
2+
3+
# A special property that should be specified at the top of the file outside of
4+
# any sections. Set to true to stop .editor config file search on current file
5+
root = true
6+
7+
[*]
8+
# Indentation style
9+
# Possible values - tab, space
10+
indent_style = space
11+
12+
# Indentation size in single-spaced characters
13+
# Possible values - an integer, tab
14+
indent_size = 2
15+
16+
# Line ending file format
17+
# Possible values - lf, crlf, cr
18+
end_of_line = lf
19+
20+
# File character encoding
21+
# Possible values - latin1, utf-8, utf-16be, utf-16le
22+
charset = utf-8
23+
24+
# Denotes whether to trim whitespace at the end of lines
25+
# Possible values - true, false
26+
trim_trailing_whitespace = true
27+
28+
# Denotes whether file should end with a newline
29+
# Possible values - true, false
30+
insert_final_newline = true

.eslintrc.json

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,10 @@
11
{
2-
"root": true,
3-
"parserOptions": {
4-
"ecmaVersion": 2018,
5-
"sourceType": "module"
2+
"extends": "standard",
3+
"env": {
4+
"node": true,
5+
"mocha": true
66
},
7-
"plugins": ["prettier"],
8-
"rules": {
9-
"no-debugger": ["warn"],
10-
"no-regex-spaces": ["error"],
11-
"no-unsafe-negation": ["error"],
12-
"curly": ["error", "multi-or-nest", "consistent"],
13-
"dot-location": ["error", "property"],
14-
"dot-notation": ["error"],
15-
"eqeqeq": ["error", "smart"],
16-
"no-else-return": ["error"],
17-
"no-extra-bind": ["error"],
18-
"no-extra-label": ["error"],
19-
"no-floating-decimal": ["error"],
20-
"no-implicit-coercion": ["error", { "allow": ["!!"] }],
21-
"wrap-iife": ["error", "inside"],
22-
"strict": ["error", "global"],
23-
"func-call-spacing": ["error", "never"],
24-
"comma-style": ["error", "last"],
25-
"keyword-spacing": ["error"],
26-
"linebreak-style": ["error", "unix"],
27-
"new-parens": ["error"],
28-
"no-lonely-if": ["error"],
29-
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
30-
"no-whitespace-before-property": ["error"],
31-
"semi": ["error", "never"],
32-
"arrow-body-style": ["error", "as-needed"],
33-
"arrow-parens": ["error", "as-needed"],
34-
"arrow-spacing": ["error"],
35-
"no-useless-computed-key": ["error"],
36-
"no-useless-rename": ["error"],
37-
"no-var": ["off"],
38-
"prefer-spread": ["off"],
39-
"prefer-template": ["error"],
40-
"rest-spread-spacing": ["error", "never"],
41-
"prefer-const": ["warn", { "destructuring": "all" }],
42-
"no-unreachable": ["warn"],
43-
"no-unused-vars": ["warn", { "args": "none" }],
44-
45-
"prettier/prettier": [
46-
"warn",
47-
{
48-
"printWidth": 80,
49-
"trailingComma": "none",
50-
"singleQuote": false,
51-
"semi": false
52-
}
53-
]
7+
"parserOptions": {
8+
"ecmaVersion": 8
549
}
5510
}

0 commit comments

Comments
 (0)