@debbl/eslint-config 1.1.0 → 1.1.1
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/dist/index.js +31 -31
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,16 +14,16 @@ import { default as default12 } from "eslint-plugin-prettier";
|
|
|
14
14
|
import { default as default13 } from "eslint-config-prettier";
|
|
15
15
|
import { default as default14 } from "eslint-plugin-react";
|
|
16
16
|
import { default as default15 } from "eslint-plugin-react-hooks";
|
|
17
|
-
import
|
|
17
|
+
import { default as default16 } from "@next/eslint-plugin-next";
|
|
18
18
|
import * as parserTs from "@typescript-eslint/parser";
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
19
|
+
import { default as default17 } from "@typescript-eslint/eslint-plugin";
|
|
20
|
+
import { default as default18 } from "eslint-plugin-vue";
|
|
21
|
+
import { default as default19 } from "vue-eslint-parser";
|
|
22
22
|
import * as pluginYml from "eslint-plugin-yml";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as default20 } from "yaml-eslint-parser";
|
|
24
24
|
import * as pluginJsonc from "eslint-plugin-jsonc";
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
25
|
+
import { default as default21 } from "jsonc-eslint-parser";
|
|
26
|
+
import { default as default22 } from "eslint-plugin-tailwindcss";
|
|
27
27
|
|
|
28
28
|
// src/configs/comments.ts
|
|
29
29
|
function comments() {
|
|
@@ -460,7 +460,7 @@ function jsonc() {
|
|
|
460
460
|
{
|
|
461
461
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
|
|
462
462
|
languageOptions: {
|
|
463
|
-
parser:
|
|
463
|
+
parser: default21
|
|
464
464
|
},
|
|
465
465
|
name: "eslint:jsonc:rules",
|
|
466
466
|
rules: {
|
|
@@ -856,7 +856,7 @@ function typescript(options) {
|
|
|
856
856
|
plugins: {
|
|
857
857
|
"antfu": default2,
|
|
858
858
|
"import": pluginImport,
|
|
859
|
-
"@typescript-eslint":
|
|
859
|
+
"@typescript-eslint": default17
|
|
860
860
|
}
|
|
861
861
|
},
|
|
862
862
|
{
|
|
@@ -875,8 +875,8 @@ function typescript(options) {
|
|
|
875
875
|
},
|
|
876
876
|
name: "eslint:typescript:rules",
|
|
877
877
|
rules: {
|
|
878
|
-
...
|
|
879
|
-
...
|
|
878
|
+
...default17.configs["eslint-recommended"].overrides[0].rules,
|
|
879
|
+
...default17.configs.strict.rules,
|
|
880
880
|
"antfu/generic-spacing": "error",
|
|
881
881
|
"antfu/named-tuple-spacing": "error",
|
|
882
882
|
"antfu/no-cjs-exports": "error",
|
|
@@ -999,13 +999,13 @@ function vue(options = {}) {
|
|
|
999
999
|
{
|
|
1000
1000
|
name: "eslint:vue:setup",
|
|
1001
1001
|
plugins: {
|
|
1002
|
-
vue:
|
|
1002
|
+
vue: default18
|
|
1003
1003
|
}
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
1006
|
files: [GLOB_VUE],
|
|
1007
1007
|
languageOptions: {
|
|
1008
|
-
parser:
|
|
1008
|
+
parser: default19,
|
|
1009
1009
|
parserOptions: {
|
|
1010
1010
|
ecmaFeatures: {
|
|
1011
1011
|
jsx: true
|
|
@@ -1016,12 +1016,12 @@ function vue(options = {}) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
},
|
|
1018
1018
|
name: "eslint:vue:rules",
|
|
1019
|
-
processor:
|
|
1019
|
+
processor: default18.processors[".vue"],
|
|
1020
1020
|
rules: {
|
|
1021
|
-
...
|
|
1022
|
-
...
|
|
1023
|
-
...
|
|
1024
|
-
...
|
|
1021
|
+
...default18.configs.base.rules,
|
|
1022
|
+
...default18.configs["vue3-essential"].rules,
|
|
1023
|
+
...default18.configs["vue3-strongly-recommended"].rules,
|
|
1024
|
+
...default18.configs["vue3-recommended"].rules,
|
|
1025
1025
|
"node/prefer-global/process": "off",
|
|
1026
1026
|
"vue/block-order": [
|
|
1027
1027
|
"error",
|
|
@@ -1138,7 +1138,7 @@ function yml() {
|
|
|
1138
1138
|
{
|
|
1139
1139
|
files: [GLOB_YAML],
|
|
1140
1140
|
languageOptions: {
|
|
1141
|
-
parser:
|
|
1141
|
+
parser: default20
|
|
1142
1142
|
},
|
|
1143
1143
|
name: "eslint:yaml:rules",
|
|
1144
1144
|
rules: {
|
|
@@ -1235,11 +1235,11 @@ function next() {
|
|
|
1235
1235
|
return [
|
|
1236
1236
|
{
|
|
1237
1237
|
plugins: {
|
|
1238
|
-
"@next/next":
|
|
1238
|
+
"@next/next": default16
|
|
1239
1239
|
},
|
|
1240
1240
|
rules: {
|
|
1241
|
-
...
|
|
1242
|
-
...
|
|
1241
|
+
...default16.configs.recommended.rules,
|
|
1242
|
+
...default16.configs["core-web-vitals"].rules
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
];
|
|
@@ -1279,10 +1279,10 @@ function tailwindcss() {
|
|
|
1279
1279
|
{
|
|
1280
1280
|
name: "eslint:tailwindcss",
|
|
1281
1281
|
plugins: {
|
|
1282
|
-
tailwindcss:
|
|
1282
|
+
tailwindcss: default22
|
|
1283
1283
|
},
|
|
1284
1284
|
rules: {
|
|
1285
|
-
...
|
|
1285
|
+
...default22.configs.recommended.rules
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
];
|
|
@@ -1397,10 +1397,10 @@ export {
|
|
|
1397
1397
|
jsonc,
|
|
1398
1398
|
markdown,
|
|
1399
1399
|
node,
|
|
1400
|
-
|
|
1400
|
+
default21 as parserJsonc,
|
|
1401
1401
|
parserTs,
|
|
1402
|
-
|
|
1403
|
-
|
|
1402
|
+
default19 as parserVue,
|
|
1403
|
+
default20 as parserYml,
|
|
1404
1404
|
perfectionist,
|
|
1405
1405
|
default2 as pluginAntfu,
|
|
1406
1406
|
default3 as pluginComments,
|
|
@@ -1408,19 +1408,19 @@ export {
|
|
|
1408
1408
|
default4 as pluginJsdoc,
|
|
1409
1409
|
pluginJsonc,
|
|
1410
1410
|
default5 as pluginMarkdown,
|
|
1411
|
-
pluginNext,
|
|
1411
|
+
default16 as pluginNext,
|
|
1412
1412
|
default9 as pluginNoOnlyTests,
|
|
1413
1413
|
default6 as pluginNode,
|
|
1414
1414
|
default11 as pluginPerfectionist,
|
|
1415
1415
|
default12 as pluginPrettier,
|
|
1416
1416
|
default14 as pluginReact,
|
|
1417
1417
|
default15 as pluginReactHooks,
|
|
1418
|
-
|
|
1419
|
-
|
|
1418
|
+
default22 as pluginTailwindcss,
|
|
1419
|
+
default17 as pluginTs,
|
|
1420
1420
|
default7 as pluginUnicorn,
|
|
1421
1421
|
default8 as pluginUnusedImports,
|
|
1422
1422
|
default10 as pluginVitest,
|
|
1423
|
-
|
|
1423
|
+
default18 as pluginVue,
|
|
1424
1424
|
pluginYml,
|
|
1425
1425
|
prettier,
|
|
1426
1426
|
sortPackageJson,
|
package/package.json
CHANGED