-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.46 KB
/
.eslintrc.js
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
module.exports = {
'ignorePatterns': ['*.config.js'],
'settings': {
'react': {
'version': 'detect'
}
},
'env': {
'browser': true,
'es2021': true
},
'extends': [
'standard',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:consistent-default-export-name/fixed',
'plugin:storybook/recommended'
],
'overrides': [
{
'files': ['**/*.stories.*', '*.ts', '*.tsx']
}
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': ['react', '@typescript-eslint', 'import'],
rules: {
'eol-last': 'off',
'eqeqeq': 'off',
'quotes': ["error", "single"],
'semi': ["error", "never"],
'no-unused-vars': 'off',
'func-style': ['error', 'expression'],
'multiline-ternary': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
'argsIgnorePattern': '^_',
'destructuredArrayIgnorePattern': '^_',
'varsIgnorePattern': '^_',
'ignoreRestSiblings': true
}
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'consistent-default-export-name/default-export-match-filename': 'error',
'consistent-default-export-name/default-import-match-filename': ['error', { ignorePaths: ['**/*.module.css'] }]
},
}