Skip to content

Commit 0db4d36

Browse files
committed
Updated eslint
1 parent fb7ca21 commit 0db4d36

File tree

2 files changed

+3
-52
lines changed

2 files changed

+3
-52
lines changed

.eslintrc

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,7 @@
44
"node": true
55
},
66
"parserOptions": {
7-
"sourceType": "module",
8-
"ecmaVersion": 8
7+
"sourceType": "module"
98
},
10-
"globals": {
11-
"Promise": true,
12-
"ArrayBuffer": true,
13-
"File": true,
14-
"Blob": true
15-
},
16-
"extends": "eslint:recommended",
17-
"rules": {
18-
"eqeqeq": ["error", "always"],
19-
"quotes": ["error", "single"],
20-
"linebreak-style": ["error", "unix"],
21-
"semi": ["error", "always"],
22-
"indent": ["error", 2],
23-
"radix": 1,
24-
"eol-last": ["error", "always"],
25-
"consistent-return": 1,
26-
"space-in-parens": ["error", "never"],
27-
"space-before-function-paren": ["error", {
28-
"anonymous": "never",
29-
"named": "never",
30-
"asyncArrow": "always"
31-
}],
32-
"space-before-blocks": ["error", "always"],
33-
"space-infix-ops": ["error", {"int32Hint": false}],
34-
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
35-
"spaced-comment": ["warn", "always"],
36-
"prefer-arrow-callback": 1,
37-
"prefer-spread": 1,
38-
"prefer-rest-params": 1,
39-
"template-curly-spacing": ["warn", "never"],
40-
"no-multiple-empty-lines": ["error"],
41-
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
42-
"no-useless-constructor": 1,
43-
"no-var": 2,
44-
"no-duplicate-imports": 2,
45-
"no-console": "off",
46-
"no-extra-semi": 2,
47-
"no-eval": 2,
48-
"no-invalid-this": 1,
49-
"no-new-func": 2,
50-
"no-return-await": 1,
51-
"no-self-compare": 2,
52-
"no-with": 2,
53-
"no-multi-assign": 1,
54-
"no-new-object": 2,
55-
"no-tabs": 1,
56-
"no-trailing-spaces": 2,
57-
"comma-spacing": ["error", { "before": false, "after": true }],
58-
"object-curly-spacing": ["error", "never"]
59-
}
9+
"extends": "@osjs/eslint-config"
6010
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@babel/preset-env": "^7.4.5",
4545
"@babel/runtime": "^7.4.5",
4646
"@osjs/common": "^3.0.3",
47+
"@osjs/eslint-config": "^1.0.0",
4748
"babel-loader": "^8.0.6",
4849
"css-loader": "^2.1.1",
4950
"css-mediaquery": "^0.1.2",

0 commit comments

Comments
 (0)