This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
generated from samhuk/web-app-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
106 lines (106 loc) · 2.69 KB
/
.eslintrc.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"ignorePatterns": [
"node_modules/**/*",
"build/**/*",
"build-test/**/*",
"import/**/*",
"content/**/*",
"pgdata/**/*",
"package.lock.json",
"nginx.conf",
"LICENSE",
"Dockerfile",
"*.yaml",
"*.go",
"*.sh",
"*.md",
"*.sql",
"*.json",
"*.scss",
"*.html",
"*.ico",
"*.ttf",
"*.woff2",
"*.txt",
"*.env",
"*.md",
"*.bat",
"*.js",
"src/external/playwright-html-reporter/**/*"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx", ".js", ".jsx", ".scss"]
}
}
},
"rules": {
"default-case": "off",
"semi": [2, "never"],
"prefer-destructuring": "off",
"import/extensions": "off",
"radix": "off",
"object-curly-newline": "off",
"react/function-component-definition": [2, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"comma-dangle": ["error", "always-multiline"],
"nonblock-statement-body-position": ["error", "any"],
"curly": ["error", "multi-or-nest", "consistent"],
"max-len": ["error", { "code": 150, "ignoreTemplateLiterals": true }],
"react/jsx-filename-extension": [1, {
"extensions": [".ts", ".tsx"]
}],
"react/require-default-props": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-undef": "off",
"no-unused-vars": "off",
"arrow-parens": [2, "as-needed"],
"no-return-assign": [0],
"react/destructuring-assignment": [0],
"brace-style": [2, "stroustrup"],
"no-underscore-dangle": [0],
"no-nested-ternary": [0],
"react/jsx-one-expression-per-line": "off",
"import/prefer-default-export": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"react/no-array-index-key": "warn",
"class-methods-use-this": "off",
"react/jsx-max-props-per-line": "off",
"react/jsx-first-prop-new-line": "off",
"no-useless-constructor": "off",
"no-empty-function": "off",
"lines-between-class-members": "off",
"no-param-reassign": "warn",
"react/jsx-no-useless-fragment": "warn",
"object-shorthand": ["error", "properties"],
"space-before-function-paren": "off",
"timport/no-extraneous-dependencies": "off",
"import/order": "warn"
}
}