-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
55 lines (55 loc) · 1.38 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
module.exports = {
root: true,
extends: [
'plugin:prettier/recommended',
'prettier',
'next',
'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: {
'@next/next/no-img-element': 'off',
'@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',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off'
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json'
}
}
}
}