-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
50 lines (50 loc) · 1.4 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["import", "jest", "jest-dom", "testing-library", "jsx-a11y", "react", "react-hooks", "@typescript-eslint"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": ["./tsconfig.dev.json"]
},
"ignorePatterns": ["rollup.config.mjs"],
"settings": {
"react": {
"version": "16"
}
},
"rules": {
"prettier/prettier": ["error"],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"function-call-argument-newline": ["error", "consistent"],
"max-len": ["error", { "code": 175, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
"import/no-extraneous-dependencies": ["off"],
"react/prop-types": ["off"],
"react/require-default-props": ["off"],
"react/jsx-props-no-spreading": ["off"]
}
}