-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.01 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/eslint-recommended"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint"],
rules: {
"max-len": ["error", { code: 160 }],
quotes: [1, "double"],
"linebreak-style": ["error", "windows"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"react/display-name": "off",
"object-curly-newline": ["error", { multiline: true }],
"no-alert": 0,
"no-console": 0,
"react/jsx-one-expression-per-line": 0,
"arrow-parens": ["error", "as-needed"],
"import/no-cycle": [0, { maxDepth: 5 }],
"react/require-default-props": 0,
"import/no-extraneous-dependencies": 0,
},
};