@fullstacksjs/eslint-config 13.13.0 → 13.13.2
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.
|
@@ -26,19 +26,7 @@ function perfectionist() {
|
|
|
26
26
|
'perfectionist/sort-intersection-types': ['warn', {
|
|
27
27
|
groups: ['conditional', 'function', 'import', 'intersection', 'keyword', 'literal', 'named', 'object', 'operator', 'tuple', 'union', 'nullish']
|
|
28
28
|
}],
|
|
29
|
-
'perfectionist/sort-jsx-props':
|
|
30
|
-
groups: ['attr', 'shorthand', 'size', 'unknown', 'callback', 'multiline'],
|
|
31
|
-
customGroups: [{
|
|
32
|
-
groupName: 'callback',
|
|
33
|
-
elementNamePattern: '^on.+'
|
|
34
|
-
}, {
|
|
35
|
-
groupName: 'size',
|
|
36
|
-
elementNamePattern: ['width', 'size', 'height']
|
|
37
|
-
}, {
|
|
38
|
-
groupName: 'attr',
|
|
39
|
-
elementNamePattern: ['dir', 'lang']
|
|
40
|
-
}]
|
|
41
|
-
}],
|
|
29
|
+
'perfectionist/sort-jsx-props': 'off',
|
|
42
30
|
'perfectionist/sort-maps': 'off',
|
|
43
31
|
'perfectionist/sort-named-exports': 'warn',
|
|
44
32
|
'perfectionist/sort-named-imports': 'warn',
|
package/cjs/modules/stylistic.js
CHANGED
|
@@ -25,7 +25,9 @@ function stylistic() {
|
|
|
25
25
|
component: true,
|
|
26
26
|
html: true
|
|
27
27
|
}],
|
|
28
|
-
'@stylistic/no-mixed-operators': 'error',
|
|
28
|
+
'@stylistic/no-mixed-operators': ['error', {
|
|
29
|
+
allowSamePrecedence: true
|
|
30
|
+
}],
|
|
29
31
|
'@stylistic/padding-line-between-statements': ['warn', {
|
|
30
32
|
blankLine: 'always',
|
|
31
33
|
prev: ['case', 'default'],
|
|
@@ -128,7 +128,8 @@ function typescript(options = {}) {
|
|
|
128
128
|
classes: true
|
|
129
129
|
}],
|
|
130
130
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
131
|
-
'@typescript-eslint/no-useless-default-assignment': '
|
|
131
|
+
'@typescript-eslint/no-useless-default-assignment': 'off',
|
|
132
|
+
// Re-enable after fix https://github.com/typescript-eslint/typescript-eslint/issues/11849
|
|
132
133
|
'@typescript-eslint/no-useless-empty-export': 'warn',
|
|
133
134
|
'@typescript-eslint/parameter-properties': 'off',
|
|
134
135
|
'@typescript-eslint/prefer-as-const': 'warn',
|
package/package.json
CHANGED
|
@@ -34,26 +34,7 @@ function perfectionist() {
|
|
|
34
34
|
],
|
|
35
35
|
},
|
|
36
36
|
],
|
|
37
|
-
'perfectionist/sort-jsx-props':
|
|
38
|
-
'warn',
|
|
39
|
-
{
|
|
40
|
-
groups: ['attr', 'shorthand', 'size', 'unknown', 'callback', 'multiline'],
|
|
41
|
-
customGroups: [
|
|
42
|
-
{
|
|
43
|
-
groupName: 'callback',
|
|
44
|
-
elementNamePattern: '^on.+',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
groupName: 'size',
|
|
48
|
-
elementNamePattern: ['width', 'size', 'height'],
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
groupName: 'attr',
|
|
52
|
-
elementNamePattern: ['dir', 'lang'],
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
37
|
+
'perfectionist/sort-jsx-props': 'off',
|
|
57
38
|
'perfectionist/sort-maps': 'off',
|
|
58
39
|
'perfectionist/sort-named-exports': 'warn',
|
|
59
40
|
'perfectionist/sort-named-imports': 'warn',
|
|
@@ -16,7 +16,7 @@ function stylistic() {
|
|
|
16
16
|
html: true,
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
|
-
'@stylistic/no-mixed-operators': 'error',
|
|
19
|
+
'@stylistic/no-mixed-operators': ['error', { allowSamePrecedence: true }],
|
|
20
20
|
'@stylistic/padding-line-between-statements': [
|
|
21
21
|
'warn',
|
|
22
22
|
{ blankLine: 'always', prev: ['case', 'default'], next: '*' },
|
|
@@ -117,7 +117,7 @@ function typescript(options = {}) {
|
|
|
117
117
|
],
|
|
118
118
|
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: true }],
|
|
119
119
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
120
|
-
'@typescript-eslint/no-useless-default-assignment': '
|
|
120
|
+
'@typescript-eslint/no-useless-default-assignment': 'off', // Re-enable after fix https://github.com/typescript-eslint/typescript-eslint/issues/11849
|
|
121
121
|
'@typescript-eslint/no-useless-empty-export': 'warn',
|
|
122
122
|
'@typescript-eslint/parameter-properties': 'off',
|
|
123
123
|
'@typescript-eslint/prefer-as-const': 'warn',
|