-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.yml
68 lines (68 loc) · 2.09 KB
/
.eslintrc.yml
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
env:
browser: true
webextensions: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- import
- mocha-no-only
extends:
- airbnb-base
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:react/recommended
settings:
import/resolver:
node:
extensions: ['.js', '.jsx', '.ts', '.tsx']
rules:
prefer-destructuring: off
curly: [error, all]
brace-style: [error, 1tbs, {allowSingleLine: false}]
no-param-reassign: off
no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}]
no-use-before-define: [error, {functions: false}]
'@typescript-eslint/no-use-before-define': [error, {functions: false}]
'@typescript-eslint/interface-name-prefix': [warn, always]
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/no-unused-vars': [error, {argsIgnorePattern: '^_', varsIgnorePattern: '^_'}]
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/no-empty-function': [warn]
'@typescript-eslint/camelcase': [warn]
'@typescript-eslint/no-non-null-assertion': off
prefer-arrow-callback: off
object-curly-spacing: [error, never]
arrow-parens: [error, always]
import/extensions: off
import/no-extraneous-dependencies:
[error, {devDependencies: ['./**/*test.js', 'webpack.config.js']}]
import/prefer-default-export: off
react/jsx-uses-vars: error
react/react-in-jsx-scope: off
react/no-unknown-property: off
react/prop-types: off
react/display-name: off
comma-dangle: off
operator-linebreak: off
implicit-arrow-linebreak: off
function-paren-newline: off
quotes: off
object-curly-newline: off
indent: off
max-len: off
no-unused-expressions: off
semi: off
consistent-return: off
class-methods-use-this: off
no-shadow: off
overrides:
- files: ['webpack.config.js']
rules:
'@typescript-eslint/no-var-requires': off
'@typescript-eslint/camelcase': off
'@typescript-eslint/no-empty-function': off
- files: ['scripts/**/*.ts', 'e2e/**/*.ts']
rules:
no-console: off