@aliexme/eslint-config 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.js +2 -1
- package/package.json +15 -33
- package/rules/base.js +100 -99
- package/rules/import.js +22 -21
- package/rules/prettier.js +5 -4
- package/rules/react-native.js +17 -16
- package/rules/react.js +33 -37
- package/rules/typescript.js +23 -22
package/README.md
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aliexme/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Rule set for ESLint",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Alexander Smirnov <al.smirnov996@gmail.com>",
|
|
7
|
-
"homepage": "https://github.com/aliexme/
|
|
7
|
+
"homepage": "https://github.com/aliexme/web-shared",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/aliexme/
|
|
10
|
+
"url": "https://github.com/aliexme/web-shared",
|
|
11
|
+
"directory": "packages/eslint-config"
|
|
11
12
|
},
|
|
12
13
|
"license": "MIT",
|
|
13
14
|
"keywords": [
|
|
@@ -30,37 +31,17 @@
|
|
|
30
31
|
"publishConfig": {
|
|
31
32
|
"access": "public"
|
|
32
33
|
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"prepare": "husky install",
|
|
35
|
-
"lint:check": "eslint --ext .js,.mjs,.jsx,.ts,.tsx --ignore-path .gitignore --cache ./",
|
|
36
|
-
"lint:fix": "pnpm lint:check --fix"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "5.52.0",
|
|
40
|
-
"@typescript-eslint/parser": "5.52.0",
|
|
41
|
-
"eslint": "8.34.0",
|
|
42
|
-
"eslint-config-prettier": "8.6.0",
|
|
43
|
-
"eslint-plugin-import": "2.27.5",
|
|
44
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
45
|
-
"eslint-plugin-react": "7.32.2",
|
|
46
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
47
|
-
"eslint-plugin-react-native": "4.0.0",
|
|
48
|
-
"husky": "8.0.3",
|
|
49
|
-
"lint-staged": "13.1.2",
|
|
50
|
-
"prettier": "2.8.4",
|
|
51
|
-
"typescript": "4.9.5"
|
|
52
|
-
},
|
|
53
34
|
"peerDependencies": {
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
55
|
-
"@typescript-eslint/parser": "^
|
|
56
|
-
"eslint": "
|
|
57
|
-
"eslint-config-prettier": "^
|
|
58
|
-
"eslint-plugin-import": "^2.
|
|
59
|
-
"eslint-plugin-prettier": "^
|
|
60
|
-
"eslint-plugin-react": "^7.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
36
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
37
|
+
"eslint": "^8.50.0",
|
|
38
|
+
"eslint-config-prettier": "^9.0.0",
|
|
39
|
+
"eslint-plugin-import": "^2.28.1",
|
|
40
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
41
|
+
"eslint-plugin-react": "^7.33.2",
|
|
61
42
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
62
|
-
"eslint-plugin-react-native": "^4.
|
|
63
|
-
"prettier": "^
|
|
43
|
+
"eslint-plugin-react-native": "^4.1.0",
|
|
44
|
+
"prettier": "^3.0.3"
|
|
64
45
|
},
|
|
65
46
|
"peerDependenciesMeta": {
|
|
66
47
|
"@typescript-eslint/eslint-plugin": {
|
|
@@ -87,5 +68,6 @@
|
|
|
87
68
|
"prettier": {
|
|
88
69
|
"optional": true
|
|
89
70
|
}
|
|
90
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"gitHead": "461eb2c06b68af861d56eaaa5f5f5364aeccc068"
|
|
91
73
|
}
|
package/rules/base.js
CHANGED
|
@@ -1,121 +1,122 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
parserOptions: {
|
|
4
|
+
ecmaVersion: 'latest',
|
|
5
|
+
sourceType: 'module',
|
|
5
6
|
},
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
env: {
|
|
8
|
+
browser: true,
|
|
9
|
+
node: true,
|
|
10
|
+
es6: true,
|
|
10
11
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
12
|
+
extends: ['eslint:recommended'],
|
|
13
|
+
rules: {
|
|
14
|
+
quotes: ['error', 'single'],
|
|
15
|
+
'jsx-quotes': ['error', 'prefer-single'],
|
|
16
|
+
'quote-props': ['error', 'as-needed'],
|
|
17
|
+
semi: ['error', 'never'],
|
|
18
|
+
indent: ['error', 2, { SwitchCase: 1 }],
|
|
19
|
+
'max-len': ['error', 120],
|
|
20
|
+
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0, maxBOF: 0 }],
|
|
21
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
22
|
+
'comma-spacing': ['error', { before: false, after: true }],
|
|
23
|
+
'comma-style': ['error', 'last'],
|
|
24
|
+
'key-spacing': 'error',
|
|
25
|
+
'keyword-spacing': ['error', { before: true, after: true }],
|
|
26
|
+
'object-curly-spacing': ['error', 'always'],
|
|
27
|
+
'array-bracket-spacing': ['error', 'never'],
|
|
28
|
+
'computed-property-spacing': ['error', 'never', { enforceForClassMembers: true }],
|
|
29
|
+
'arrow-spacing': 'error',
|
|
30
|
+
'switch-colon-spacing': ['error', { after: true, before: false }],
|
|
31
|
+
'space-in-parens': ['error', 'never'],
|
|
32
|
+
'space-before-function-paren': [
|
|
33
|
+
'error',
|
|
33
34
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
anonymous: 'never',
|
|
36
|
+
named: 'never',
|
|
37
|
+
asyncArrow: 'always',
|
|
37
38
|
},
|
|
38
39
|
],
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
40
|
+
'space-before-blocks': ['error', 'always'],
|
|
41
|
+
'no-constant-condition': ['error', { checkLoops: false }],
|
|
42
|
+
'no-trailing-spaces': 'error',
|
|
43
|
+
'no-multi-spaces': 'error',
|
|
44
|
+
'eol-last': 'error',
|
|
45
|
+
'arrow-parens': 'error',
|
|
46
|
+
'no-useless-rename': 'error',
|
|
47
|
+
'no-var': 'error',
|
|
48
|
+
'prefer-const': 'error',
|
|
49
|
+
'no-new-object': 'error',
|
|
50
|
+
'object-shorthand': 'error',
|
|
51
|
+
'prefer-object-spread': 'error',
|
|
52
|
+
'no-array-constructor': 'error',
|
|
53
|
+
'array-callback-return': ['error', { checkForEach: true }],
|
|
54
|
+
'prefer-destructuring': ['error', { array: false, object: true }, { enforceForRenamedProperties: false }],
|
|
55
|
+
'prefer-template': 'error',
|
|
56
|
+
'template-curly-spacing': ['error', 'never'],
|
|
57
|
+
'no-eval': 'error',
|
|
58
|
+
'wrap-iife': ['error', 'inside', { functionPrototypeMethods: true }],
|
|
59
|
+
'no-loop-func': 'error',
|
|
60
|
+
'prefer-rest-params': 'error',
|
|
61
|
+
'default-param-last': 'error',
|
|
62
|
+
'no-new-func': 'error',
|
|
63
|
+
'no-param-reassign': ['error', { props: true }],
|
|
64
|
+
'prefer-spread': 'error',
|
|
65
|
+
'space-infix-ops': ['error', { int32Hint: true }],
|
|
66
|
+
'function-paren-newline': ['error', 'multiline-arguments'],
|
|
67
|
+
'object-curly-newline': ['error', { consistent: true }],
|
|
68
|
+
'prefer-arrow-callback': 'error',
|
|
69
|
+
'no-empty-function': 'error',
|
|
70
|
+
'no-useless-constructor': 'error',
|
|
71
|
+
'dot-notation': 'error',
|
|
72
|
+
'one-var': ['error', 'never'],
|
|
73
|
+
'no-multi-assign': 'error',
|
|
74
|
+
'operator-linebreak': [
|
|
75
|
+
'error',
|
|
76
|
+
'before',
|
|
76
77
|
{
|
|
77
|
-
|
|
78
|
+
overrides: { '=': 'after' },
|
|
78
79
|
},
|
|
79
80
|
],
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
eqeqeq: 'error',
|
|
82
|
+
'no-unneeded-ternary': ['error', { defaultAssignment: false }],
|
|
83
|
+
'no-nested-ternary': 'error',
|
|
84
|
+
'no-mixed-operators': 'error',
|
|
85
|
+
'brace-style': ['error', '1tbs'],
|
|
86
|
+
'spaced-comment': [
|
|
87
|
+
'error',
|
|
88
|
+
'always',
|
|
88
89
|
{
|
|
89
|
-
|
|
90
|
+
markers: ['/', '!', '?'],
|
|
90
91
|
},
|
|
91
92
|
],
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
|
|
94
|
+
'no-whitespace-before-property': 'error',
|
|
95
|
+
'padded-blocks': ['error', 'never'],
|
|
96
|
+
'block-spacing': ['error', 'always'],
|
|
97
|
+
'func-call-spacing': ['error', 'never'],
|
|
98
|
+
'no-new-wrappers': 'error',
|
|
99
|
+
radix: ['error', 'as-needed'],
|
|
100
|
+
'id-length': [
|
|
101
|
+
'error',
|
|
101
102
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
min: 2,
|
|
104
|
+
exceptions: ['_', 'i', 'e'],
|
|
105
|
+
exceptionPatterns: ['[x-z]'],
|
|
105
106
|
},
|
|
106
107
|
],
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
'new-cap': 'error',
|
|
109
|
+
'no-restricted-globals': [
|
|
110
|
+
'error',
|
|
110
111
|
{
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
name: 'isNaN',
|
|
113
|
+
message: 'Use Number.isNaN instead.',
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
name: 'isFinite',
|
|
117
|
+
message: 'Use Number.isFinite instead.',
|
|
117
118
|
},
|
|
118
119
|
],
|
|
119
|
-
|
|
120
|
+
'no-console': 'warn',
|
|
120
121
|
},
|
|
121
122
|
}
|
package/rules/import.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
plugins: ['import'],
|
|
4
|
+
extends: ['plugin:import/recommended'],
|
|
5
|
+
settings: {
|
|
6
|
+
'import/resolver': {
|
|
7
|
+
node: {
|
|
8
|
+
extensions: ['.js', '.cjs', '.mjs', '.jsx', '.ts', '.tsx'],
|
|
9
|
+
moduleDirectory: ['src/', 'node_modules'],
|
|
9
10
|
},
|
|
10
11
|
},
|
|
11
|
-
|
|
12
|
+
'import/ignore': ['node_modules'],
|
|
12
13
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
rules: {
|
|
15
|
+
'import/no-useless-path-segments': ['error', { noUselessIndex: false }],
|
|
16
|
+
'import/order': [
|
|
17
|
+
'error',
|
|
17
18
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
groups: [['builtin', 'external'], 'internal', ['parent', 'sibling'], 'index', 'object'],
|
|
20
|
+
'newlines-between': 'always',
|
|
21
|
+
warnOnUnassignedImports: true,
|
|
21
22
|
},
|
|
22
23
|
],
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
25
|
+
'import/no-self-import': 'error',
|
|
26
|
+
'import/no-mutable-exports': 'error',
|
|
27
|
+
'import/first': 'error',
|
|
28
|
+
'import/newline-after-import': 'error',
|
|
29
|
+
'import/namespace': 'off',
|
|
29
30
|
},
|
|
30
31
|
}
|
package/rules/prettier.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
plugins: ['prettier'],
|
|
4
|
+
extends: ['prettier'],
|
|
5
|
+
rules: {
|
|
6
|
+
'prettier/prettier': 'error',
|
|
6
7
|
},
|
|
7
8
|
}
|
package/rules/react-native.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
+
env: {
|
|
4
|
+
'react-native/react-native': true,
|
|
5
|
+
},
|
|
6
|
+
plugins: ['react-native'],
|
|
7
|
+
extends: ['plugin:import/react-native'],
|
|
8
|
+
rules: {
|
|
9
|
+
'react-native/no-unused-styles': 'error',
|
|
10
|
+
'react-native/no-inline-styles': 'error',
|
|
11
|
+
'react-native/no-raw-text': ['error', { skip: ['Text', 'Button'] }],
|
|
12
|
+
'react-native/no-single-element-style-arrays': 'error',
|
|
13
|
+
},
|
|
14
|
+
overrides: [
|
|
3
15
|
{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
files: ['**/*.{jsx,tsx}'],
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaFeatures: {
|
|
19
|
+
jsx: true,
|
|
8
20
|
},
|
|
9
21
|
},
|
|
10
|
-
"env": {
|
|
11
|
-
"react-native/react-native": true,
|
|
12
|
-
},
|
|
13
|
-
"plugins": ["react-native"],
|
|
14
|
-
"extends": ["plugin:import/react-native"],
|
|
15
|
-
"rules": {
|
|
16
|
-
"react-native/no-unused-styles": "error",
|
|
17
|
-
"react-native/no-inline-styles": "error",
|
|
18
|
-
"react-native/no-raw-text": ["error", { "skip": ["Text", "Button"] }],
|
|
19
|
-
"react-native/no-single-element-style-arrays": "error",
|
|
20
|
-
},
|
|
21
22
|
},
|
|
22
23
|
],
|
|
23
24
|
}
|
package/rules/react.js
CHANGED
|
@@ -1,46 +1,42 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
plugins: ['react', 'react-hooks'],
|
|
4
|
+
extends: ['plugin:import/react', 'plugin:react/recommended', 'plugin:react/jsx-runtime'],
|
|
5
|
+
settings: {
|
|
6
|
+
react: {
|
|
7
|
+
version: 'detect',
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
rules: {
|
|
11
|
+
'react/jsx-tag-spacing': [
|
|
12
|
+
'error',
|
|
13
|
+
{
|
|
14
|
+
closingSlash: 'never',
|
|
15
|
+
beforeSelfClosing: 'proportional-always',
|
|
16
|
+
afterOpening: 'never',
|
|
17
|
+
beforeClosing: 'never',
|
|
9
18
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
],
|
|
20
|
+
'react/jsx-max-props-per-line': ['error', { when: 'multiline' }],
|
|
21
|
+
'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
|
|
22
|
+
'react/jsx-curly-brace-presence': ['error', 'never'],
|
|
23
|
+
'react/jsx-closing-bracket-location': 'error',
|
|
24
|
+
'react/self-closing-comp': 'error',
|
|
25
|
+
'react/no-unused-prop-types': 'error',
|
|
26
|
+
},
|
|
27
|
+
overrides: [
|
|
28
|
+
{
|
|
29
|
+
files: ['**/*.{jsx,tsx}'],
|
|
30
|
+
parserOptions: {
|
|
31
|
+
ecmaFeatures: {
|
|
32
|
+
jsx: true,
|
|
20
33
|
},
|
|
21
34
|
},
|
|
22
|
-
"rules": {
|
|
23
|
-
"react/jsx-tag-spacing": [
|
|
24
|
-
"error",
|
|
25
|
-
{
|
|
26
|
-
"closingSlash": "never",
|
|
27
|
-
"beforeSelfClosing": "proportional-always",
|
|
28
|
-
"afterOpening": "never",
|
|
29
|
-
"beforeClosing": "never",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
"react/jsx-max-props-per-line": ["error", { "when": "multiline" }],
|
|
33
|
-
"react/jsx-curly-spacing": ["error", { "when": "never", "children": true }],
|
|
34
|
-
"react/jsx-curly-brace-presence": ["error", "never"],
|
|
35
|
-
"react/jsx-closing-bracket-location": "error",
|
|
36
|
-
"react/self-closing-comp": "error",
|
|
37
|
-
"react/no-unused-prop-types": "error",
|
|
38
|
-
},
|
|
39
35
|
},
|
|
40
36
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
files: ['**/*.tsx'],
|
|
38
|
+
rules: {
|
|
39
|
+
'react/prop-types': 'off',
|
|
44
40
|
},
|
|
45
41
|
},
|
|
46
42
|
],
|
package/rules/typescript.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
|
+
/** @type {import('eslint').ESLint.ConfigData} */
|
|
1
2
|
module.exports = {
|
|
2
|
-
|
|
3
|
+
overrides: [
|
|
3
4
|
{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
files: ['**/*.{ts,tsx}'],
|
|
6
|
+
parser: '@typescript-eslint/parser',
|
|
7
|
+
plugins: ['@typescript-eslint'],
|
|
8
|
+
extends: ['plugin:import/typescript', 'plugin:@typescript-eslint/recommended'],
|
|
9
|
+
rules: {
|
|
10
|
+
'@typescript-eslint/naming-convention': [
|
|
11
|
+
'error',
|
|
11
12
|
{
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
selector: 'enumMember',
|
|
14
|
+
format: ['UPPER_CASE', 'PascalCase'],
|
|
14
15
|
},
|
|
15
16
|
],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
18
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
19
|
+
'error',
|
|
19
20
|
{
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
multiline: { delimiter: 'none' },
|
|
22
|
+
singleline: { delimiter: 'comma' },
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
'@typescript-eslint/no-empty-interface': [
|
|
26
|
+
'error',
|
|
26
27
|
{
|
|
27
|
-
|
|
28
|
+
allowSingleExtends: true,
|
|
28
29
|
},
|
|
29
30
|
],
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{
|
|
31
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
32
|
+
'error',
|
|
33
|
+
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
|
|
33
34
|
],
|
|
34
|
-
|
|
35
|
+
'@typescript-eslint/type-annotation-spacing': 'error',
|
|
35
36
|
},
|
|
36
37
|
},
|
|
37
38
|
],
|