generated from SoftwareBrothers/adminjs-feature-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
61 lines (61 loc) · 1.8 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
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
es6: true,
node: true,
},
extends: ['airbnb', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'react/jsx-filename-extension': 'off',
'@typescript-eslint/no-explicit-any': 'off',
indent: ['error', 2],
'max-len': ['error', 120],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'import/prefer-default-export': 'off',
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'import/no-unresolved': 'off',
'func-names': 'off',
'no-underscore-dangle': 'off',
'guard-for-in': 'off',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'object-curly-newline': 'off',
'import/extensions': 'off',
'no-param-reassign': 'off',
'default-param-last': 'off',
'no-use-before-define': 'off',
'no-restricted-exports': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'max-classes-per-file': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'import/no-import-module-exports': 'off',
'no-shadow': 'off',
'import/no-extraneous-dependencies': 'off',
'consistent-return': 'off',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
},
],
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/prop-types': 'off',
},
};