forked from GMOD/jbrowse-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
115 lines (115 loc) · 2.47 KB
/
.eslintrc.json
File metadata and controls
115 lines (115 loc) · 2.47 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
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
107
108
109
110
111
112
113
114
115
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"react-app",
"plugin:monorepo/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/@typescript-eslint"
],
"plugins": [
"@typescript-eslint",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true
},
"rules": {
"class-methods-use-this": "off",
"global-require": "off",
"import/no-cycle": "warn",
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"monorepo/no-internal-import": "off",
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
],
"no-debugger": "warn",
"no-undef": "error",
"no-param-reassign": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-restricted-syntax": "off",
"no-underscore-dangle": "warn",
"no-use-before-define": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true,
"semi": false,
"trailingComma": "all"
}
],
"react/destructuring-assignment": "warn",
"react/jsx-filename-extension": "off",
"react/no-unused-prop-types": "warn",
"react/no-unused-state": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/require-default-props": "warn",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/camelcase": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"overrides": [
{
"files": [
"**/*.test.[t,j]s"
],
"env": {
"jest": true
},
"globals": {
"document": true,
"it": true,
"describe": true,
"test": true
},
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}