forked from Kuechlin/mantine-data-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (49 loc) · 1.15 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
extends: [
'plugin:prettier/recommended',
'prettier',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['prettier', '@typescript-eslint', 'import'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'import/extensions': [
'warn',
'never',
{
css: 'ignorePackages',
json: 'ignorePackages',
md: 'ignorePackages',
},
],
'import/default': 2,
'import/export': 2,
'import/namespace': 2,
'import/named': 2,
'import/newline-after-import': 2,
'import/no-unresolved': [2, { commonjs: true, amd: true }],
'import/no-extraneous-dependencies': 2,
'import/no-anonymous-default-export': 0,
'import/order': 'error',
'react/no-unescaped-entities': 'off',
'react/no-children-prop': 'off',
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
},
};