-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
58 lines (58 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports = {
env: {
es6: true,
node: true,
},
plugins: ["import"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.test.json"],
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".d.ts", ".test.ts"],
},
},
parser: "@typescript-eslint/parser",
extends: [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
rules: {
"no-undef": "off",
quotes: [2, "double"],
"no-console": "off",
"no-trailing-spaces": "off",
"linebreak-style": "off",
"prefer-template": "off",
"class-methods-use-this": "off",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"function-paren-newline": "off",
"object-curly-newline": "off",
"padded-blocks": "off",
"global-require": "off",
"no-return-assign": "off",
"comma-dangle": "warn",
"max-len": "warn",
"no-return-await": "warn",
"no-unused-vars": "error",
"consistent-return": "warn",
"no-param-reassign": "warn",
"eol-last": "warn",
"generator-star-spacing": "off",
"arrow-parens": "off",
"wrap-iife": "off",
"no-mixed-operators": "warn",
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"import/prefer-default-export": "off",
"import/no-unresolved": "warn",
},
};