-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
63 lines (63 loc) · 1.44 KB
/
Copy path.eslintrc.js
File metadata and controls
63 lines (63 loc) · 1.44 KB
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
module.exports = {
"extends": [
"airbnb",
"prettier",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"@react-native-community",
"plugin:react/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"react",
"unicorn",
"react-hooks",
"@typescript-eslint",
"@typescript-eslint"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"global-require": "off",
"react/react-in-jsx-scope": "off",
"unicorn/no-null": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prevent-abbreviations": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/function-component-definition": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["enum", "enumMember"],
"format": ["StrictPascalCase"]
}
],
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
}
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
},
],
}
}