@shakuroinc/eslint-config-react 5.0.0 → 5.1.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/.eslintrc.js +66 -9
- package/package.json +1 -1
package/.eslintrc.js
CHANGED
|
@@ -33,19 +33,24 @@ module.exports = {
|
|
|
33
33
|
},
|
|
34
34
|
|
|
35
35
|
rules: {
|
|
36
|
+
'@typescript-eslint/ban-ts-ignore': 0,
|
|
37
|
+
'@typescript-eslint/explicit-function-return-type': 0,
|
|
38
|
+
'@typescript-eslint/explicit-member-accessibility': 0,
|
|
39
|
+
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
40
|
+
'@typescript-eslint/interface-name-prefix': 0,
|
|
36
41
|
'@typescript-eslint/naming-convention': [
|
|
37
42
|
'error',
|
|
38
43
|
{
|
|
39
44
|
selector: 'default',
|
|
40
45
|
format: ['PascalCase', 'camelCase'],
|
|
41
|
-
leadingUnderscore: '
|
|
42
|
-
trailingUnderscore: '
|
|
46
|
+
leadingUnderscore: 'forbid',
|
|
47
|
+
trailingUnderscore: 'forbid',
|
|
43
48
|
},
|
|
44
49
|
{
|
|
45
50
|
selector: ['variable', 'property'],
|
|
46
51
|
format: ['PascalCase', 'camelCase', 'UPPER_CASE'],
|
|
47
|
-
leadingUnderscore: '
|
|
48
|
-
trailingUnderscore: '
|
|
52
|
+
leadingUnderscore: 'forbid',
|
|
53
|
+
trailingUnderscore: 'forbid',
|
|
49
54
|
},
|
|
50
55
|
{
|
|
51
56
|
selector: 'typeLike',
|
|
@@ -61,14 +66,66 @@ module.exports = {
|
|
|
61
66
|
format: null,
|
|
62
67
|
},
|
|
63
68
|
],
|
|
64
|
-
'@typescript-eslint/ban-ts-ignore': 0,
|
|
65
|
-
'@typescript-eslint/explicit-function-return-type': 0,
|
|
66
|
-
'@typescript-eslint/explicit-member-accessibility': 0,
|
|
67
|
-
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
68
|
-
'@typescript-eslint/interface-name-prefix': 0,
|
|
69
69
|
'@typescript-eslint/no-empty-function': 0,
|
|
70
70
|
'@typescript-eslint/no-explicit-any': 0,
|
|
71
71
|
'@typescript-eslint/no-object-literal-type-assertion': 0,
|
|
72
|
+
'@typescript-eslint/padding-line-between-statements': [
|
|
73
|
+
'error',
|
|
74
|
+
{
|
|
75
|
+
blankLine: 'always',
|
|
76
|
+
prev: ['interface', 'type'],
|
|
77
|
+
next: '*',
|
|
78
|
+
},
|
|
79
|
+
{ blankLine: 'always', prev: '*', next: ['return'] },
|
|
80
|
+
{ blankLine: 'always', prev: 'function', next: 'function' },
|
|
81
|
+
{ blankLine: 'always', prev: 'multiline-const', next: '*' },
|
|
82
|
+
{
|
|
83
|
+
blankLine: 'always',
|
|
84
|
+
prev: 'import',
|
|
85
|
+
next: [
|
|
86
|
+
'interface',
|
|
87
|
+
'type',
|
|
88
|
+
'block',
|
|
89
|
+
'block-like',
|
|
90
|
+
'case',
|
|
91
|
+
'class',
|
|
92
|
+
'const',
|
|
93
|
+
'export',
|
|
94
|
+
'expression',
|
|
95
|
+
'for',
|
|
96
|
+
'function',
|
|
97
|
+
'if',
|
|
98
|
+
'let',
|
|
99
|
+
'return',
|
|
100
|
+
'throw',
|
|
101
|
+
'try',
|
|
102
|
+
'while',
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
blankLine: 'always',
|
|
107
|
+
prev: [
|
|
108
|
+
'import',
|
|
109
|
+
'interface',
|
|
110
|
+
'type',
|
|
111
|
+
'block',
|
|
112
|
+
'block-like',
|
|
113
|
+
'case',
|
|
114
|
+
'class',
|
|
115
|
+
'const',
|
|
116
|
+
'expression',
|
|
117
|
+
'for',
|
|
118
|
+
'function',
|
|
119
|
+
'if',
|
|
120
|
+
'let',
|
|
121
|
+
'return',
|
|
122
|
+
'throw',
|
|
123
|
+
'try',
|
|
124
|
+
'while',
|
|
125
|
+
],
|
|
126
|
+
next: 'export',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
72
129
|
'jsx-a11y/anchor-is-valid': [
|
|
73
130
|
'error',
|
|
74
131
|
{
|