This repository was archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.eslintrc.js
More file actions
44 lines (41 loc) · 1.26 KB
/
.eslintrc.js
File metadata and controls
44 lines (41 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
env: {
browser: true,
commonjs: true,
es2020: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 11,
},
plugins: [
"@typescript-eslint",
],
rules: {
"linebreak-style": ["error", "windows"],
indent: ["error", 4, { SwitchCase: 1 }],
quotes: ["error", "double"],
"no-console": 0, // ["warn", { allow: ["warn", "error"] }],
"max-classes-per-file": ["warn", 3],
"no-trailing-spaces": 1,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 1,
"no-undef": 0,
"global-require": 0,
"import/extensions": 0,
"import/no-unresolved": 0, // maybe 1?
"comma-spacing": 2,
"quote-props": ["warn", "as-needed"],
// "spaced-comment": 0,
"space-infix-ops": 2,
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"lines-between-class-members": 0,
"no-param-reassign": ["error", { props: false }],
"@typescript-eslint/explicit-module-boundary-types": 0
},
};