-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
40 lines (40 loc) · 1 KB
/
.eslintrc.js
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
/** @type { import("eslint-config-standard") } */
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ["standard"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"arrow-spacing": 2,
camelcase: 1,
"comma-dangle": 0,
"comma-spacing": 2,
eqeqeq: [2, "allow-null"],
indent: [2, 2, { SwitchCase: 1 }],
"no-console": 1,
"no-labels": 0,
"no-undef": 0,
"no-var": 0,
"no-redeclare": 0,
"no-extra-parens": 0,
"no-constant-condition": 1,
"no-use-before-define": 0,
"no-trailing-spaces": 2,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-redeclare": 1,
"@typescript-eslint/no-dupe-class-members": 2,
"@typescript-eslint/no-use-before-define": 1,
"object-curly-spacing": [2, "always"],
quotes: [2, "double", { avoidEscape: true }],
semi: [2, "never"],
},
}