@cabloy/lint 5.1.7 → 5.1.8
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/common/rules.js +9 -2
- package/oxc/format.js +1 -1
- package/oxc/lint.js +6 -1
- package/oxc/lintVue.js +6 -1
- package/package.json +1 -1
package/common/rules.js
CHANGED
|
@@ -73,7 +73,10 @@ export const rules = {
|
|
|
73
73
|
// 'no-setter-return': 'off', // no effect for typescript check
|
|
74
74
|
'@typescript-eslint/method-signature-style': 'off',
|
|
75
75
|
'@typescript-eslint/no-redeclare': 'off',
|
|
76
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
76
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
77
|
+
'error',
|
|
78
|
+
{ fixStyle: 'separate-type-imports', prefer: 'type-imports' },
|
|
79
|
+
],
|
|
77
80
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
78
81
|
'@typescript-eslint/no-namespace': 'off',
|
|
79
82
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
@@ -130,7 +133,11 @@ export const rules = {
|
|
|
130
133
|
'@stylistic/arrow-parens': ['error', 'as-needed'],
|
|
131
134
|
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
|
132
135
|
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
|
|
133
|
-
'@stylistic/operator-linebreak': [
|
|
136
|
+
'@stylistic/operator-linebreak': [
|
|
137
|
+
'error',
|
|
138
|
+
'after',
|
|
139
|
+
{ overrides: { '?': 'before', ':': 'before' } },
|
|
140
|
+
],
|
|
134
141
|
'@stylistic/keyword-spacing': [
|
|
135
142
|
'error',
|
|
136
143
|
{
|
package/oxc/format.js
CHANGED
package/oxc/lint.js
CHANGED
|
@@ -1193,7 +1193,12 @@ export const _configDefault = {
|
|
|
1193
1193
|
'no-redeclare': 'off',
|
|
1194
1194
|
'no-use-before-define': 'off',
|
|
1195
1195
|
},
|
|
1196
|
-
jsPlugins: [
|
|
1196
|
+
jsPlugins: [
|
|
1197
|
+
'eslint-plugin-antfu',
|
|
1198
|
+
'@e18e/eslint-plugin',
|
|
1199
|
+
'@stylistic/eslint-plugin',
|
|
1200
|
+
'eslint-plugin-unused-imports',
|
|
1201
|
+
],
|
|
1197
1202
|
plugins: ['typescript'],
|
|
1198
1203
|
},
|
|
1199
1204
|
{
|
package/oxc/lintVue.js
CHANGED
|
@@ -1213,7 +1213,12 @@ export const _configDefault = {
|
|
|
1213
1213
|
'no-redeclare': 'off',
|
|
1214
1214
|
'no-use-before-define': 'off',
|
|
1215
1215
|
},
|
|
1216
|
-
jsPlugins: [
|
|
1216
|
+
jsPlugins: [
|
|
1217
|
+
'eslint-plugin-antfu',
|
|
1218
|
+
'@e18e/eslint-plugin',
|
|
1219
|
+
'@stylistic/eslint-plugin',
|
|
1220
|
+
'eslint-plugin-unused-imports',
|
|
1221
|
+
],
|
|
1217
1222
|
plugins: ['typescript'],
|
|
1218
1223
|
},
|
|
1219
1224
|
{
|