-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (57 loc) · 1.39 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
55
56
57
module.exports = {
env: {
node: true,
browser: true,
es2021: true,
},
ignorePatterns: [
'.eslintrc.js',
'README.md',
'webpack.config.js',
'packages/ui-kit/tsdx.config.js',
],
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'react-app',
'react-app/jest',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
extraFileExtensions: ['.md', '.tsx'],
},
plugins: ['react', '@typescript-eslint'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/display-name': 'off',
'react/prop-types': 'off',
'react/no-children-prop': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'prettier/prettier': [
'error',
{
trailingComma: 'all',
tabWidth: 2,
semi: true,
singleQuote: true,
},
],
},
};