@ntnyq/eslint-config 2.0.0-beta.16 → 2.0.0-beta.18
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.cjs +36 -25
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +29 -20
- package/package.json +14 -12
package/dist/index.cjs
CHANGED
|
@@ -56,15 +56,16 @@ __export(src_exports, {
|
|
|
56
56
|
all: () => all,
|
|
57
57
|
astro: () => astro,
|
|
58
58
|
basic: () => basic,
|
|
59
|
+
common: () => common,
|
|
59
60
|
eslintComments: () => eslintComments,
|
|
60
61
|
getVueVersion: () => getVueVersion,
|
|
61
62
|
imports: () => imports,
|
|
62
63
|
js: () => js,
|
|
64
|
+
jsonOrder: () => jsonOrder,
|
|
63
65
|
jsonc: () => jsonc,
|
|
64
66
|
jsx: () => jsx,
|
|
65
67
|
markdown: () => markdown,
|
|
66
68
|
ntnyq: () => ntnyq,
|
|
67
|
-
pkgOrder: () => pkgOrder,
|
|
68
69
|
prettier: () => prettier,
|
|
69
70
|
react: () => react,
|
|
70
71
|
reactHooksPlugin: () => import_eslint_plugin_react_hooks.default,
|
|
@@ -73,6 +74,7 @@ __export(src_exports, {
|
|
|
73
74
|
tsParser: () => tsParser,
|
|
74
75
|
tsPlugin: () => import_eslint_plugin.default,
|
|
75
76
|
unicorn: () => unicorn,
|
|
77
|
+
unocss: () => unocss,
|
|
76
78
|
vue: () => vue,
|
|
77
79
|
vueParser: () => import_vue_eslint_parser.default,
|
|
78
80
|
vuePlugin: () => import_eslint_plugin_vue.default,
|
|
@@ -337,7 +339,7 @@ var js = [
|
|
|
337
339
|
semi: ["error", "never"],
|
|
338
340
|
"semi-spacing": ["error", { before: false, after: true }],
|
|
339
341
|
"space-before-blocks": ["error", "always"],
|
|
340
|
-
"space-before-function-paren": ["error", "
|
|
342
|
+
"space-before-function-paren": ["error", "never"],
|
|
341
343
|
"space-in-parens": ["error", "never"],
|
|
342
344
|
"space-infix-ops": "error",
|
|
343
345
|
"space-unary-ops": ["error", { words: true, nonwords: false }],
|
|
@@ -802,7 +804,7 @@ var react = [
|
|
|
802
804
|
|
|
803
805
|
// src/configs/astro.ts
|
|
804
806
|
var import_eslint_plugin_astro = __toESM(require("eslint-plugin-astro"), 1);
|
|
805
|
-
var
|
|
807
|
+
var astroParser = __toESM(require("astro-eslint-parser"), 1);
|
|
806
808
|
var astro = [
|
|
807
809
|
{
|
|
808
810
|
files: [GLOB_ASTRO],
|
|
@@ -810,7 +812,7 @@ var astro = [
|
|
|
810
812
|
astro: import_eslint_plugin_astro.default
|
|
811
813
|
},
|
|
812
814
|
languageOptions: {
|
|
813
|
-
parser:
|
|
815
|
+
parser: astroParser,
|
|
814
816
|
parserOptions: {
|
|
815
817
|
parser: "@typescript-eslint/parser",
|
|
816
818
|
extraFileExtensions: [".astro"]
|
|
@@ -825,7 +827,7 @@ var astro = [
|
|
|
825
827
|
|
|
826
828
|
// src/configs/jsonc.ts
|
|
827
829
|
var import_eslint_plugin_jsonc = __toESM(require("eslint-plugin-jsonc"), 1);
|
|
828
|
-
var
|
|
830
|
+
var jsoncParser = __toESM(require("jsonc-eslint-parser"), 1);
|
|
829
831
|
var jsonc = [
|
|
830
832
|
{
|
|
831
833
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
|
|
@@ -833,7 +835,7 @@ var jsonc = [
|
|
|
833
835
|
jsonc: import_eslint_plugin_jsonc.default
|
|
834
836
|
},
|
|
835
837
|
languageOptions: {
|
|
836
|
-
parser:
|
|
838
|
+
parser: jsoncParser
|
|
837
839
|
},
|
|
838
840
|
// @ts-expect-error 2322
|
|
839
841
|
rules: {
|
|
@@ -867,7 +869,7 @@ var jsonc = [
|
|
|
867
869
|
}
|
|
868
870
|
}
|
|
869
871
|
];
|
|
870
|
-
var
|
|
872
|
+
var jsonOrder = [
|
|
871
873
|
{
|
|
872
874
|
files: ["**/package.json"],
|
|
873
875
|
rules: {
|
|
@@ -946,6 +948,19 @@ var pkgOrder = [
|
|
|
946
948
|
}
|
|
947
949
|
];
|
|
948
950
|
|
|
951
|
+
// src/configs/unocss.ts
|
|
952
|
+
var import_eslint_plugin3 = __toESM(require("@unocss/eslint-plugin"), 1);
|
|
953
|
+
var unocss = [
|
|
954
|
+
{
|
|
955
|
+
plugins: {
|
|
956
|
+
"@unocss": import_eslint_plugin3.default
|
|
957
|
+
},
|
|
958
|
+
rules: {
|
|
959
|
+
...import_eslint_plugin3.default.configs.recommended.rules
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
];
|
|
963
|
+
|
|
949
964
|
// src/configs/prettier.ts
|
|
950
965
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
951
966
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
@@ -964,7 +979,7 @@ var prettier = [
|
|
|
964
979
|
|
|
965
980
|
// src/configs/markdown.ts
|
|
966
981
|
var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
|
|
967
|
-
var
|
|
982
|
+
var import_eslint_plugin4 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
|
|
968
983
|
var markdown = [
|
|
969
984
|
{
|
|
970
985
|
files: [GLOB_MARKDOWN],
|
|
@@ -983,7 +998,7 @@ var markdown = [
|
|
|
983
998
|
}
|
|
984
999
|
},
|
|
985
1000
|
plugins: {
|
|
986
|
-
"@typescript-eslint":
|
|
1001
|
+
"@typescript-eslint": import_eslint_plugin4.default
|
|
987
1002
|
},
|
|
988
1003
|
rules: {
|
|
989
1004
|
...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
|
|
@@ -1027,29 +1042,26 @@ var basic = [
|
|
|
1027
1042
|
...js,
|
|
1028
1043
|
...jsx,
|
|
1029
1044
|
...ts,
|
|
1030
|
-
...yml,
|
|
1031
1045
|
...imports,
|
|
1032
1046
|
...unicorn,
|
|
1033
|
-
...jsonc,
|
|
1034
|
-
...pkgOrder,
|
|
1035
1047
|
...eslintComments
|
|
1036
1048
|
];
|
|
1037
|
-
var
|
|
1049
|
+
var common = [
|
|
1038
1050
|
...basic,
|
|
1039
|
-
...
|
|
1040
|
-
...
|
|
1041
|
-
...
|
|
1051
|
+
...yml,
|
|
1052
|
+
...jsonc,
|
|
1053
|
+
...jsonOrder,
|
|
1042
1054
|
...prettier,
|
|
1043
1055
|
...markdown
|
|
1044
1056
|
];
|
|
1057
|
+
var all = [...common, ...vue, ...react, ...astro, ...unocss];
|
|
1045
1058
|
function ntnyq(config = [], {
|
|
1046
1059
|
vue: enableVue = false,
|
|
1047
1060
|
react: enableReact = false,
|
|
1048
1061
|
astro: enableAstro = false,
|
|
1049
|
-
|
|
1050
|
-
markdown: enableMarkdown = false
|
|
1062
|
+
unocss: enableUnoCSS = false
|
|
1051
1063
|
} = {}) {
|
|
1052
|
-
const configs4 = [...
|
|
1064
|
+
const configs4 = [...common];
|
|
1053
1065
|
if (enableVue) {
|
|
1054
1066
|
configs4.push(...vue);
|
|
1055
1067
|
}
|
|
@@ -1059,11 +1071,8 @@ function ntnyq(config = [], {
|
|
|
1059
1071
|
if (enableAstro) {
|
|
1060
1072
|
configs4.push(...astro);
|
|
1061
1073
|
}
|
|
1062
|
-
if (
|
|
1063
|
-
configs4.push(...
|
|
1064
|
-
}
|
|
1065
|
-
if (enablePrettier) {
|
|
1066
|
-
configs4.push(...prettier);
|
|
1074
|
+
if (enableUnoCSS) {
|
|
1075
|
+
configs4.push(...unocss);
|
|
1067
1076
|
}
|
|
1068
1077
|
if (Object.keys(config).length > 0) {
|
|
1069
1078
|
configs4.push(...Array.isArray(config) ? config : [config]);
|
|
@@ -1098,15 +1107,16 @@ function ntnyq(config = [], {
|
|
|
1098
1107
|
all,
|
|
1099
1108
|
astro,
|
|
1100
1109
|
basic,
|
|
1110
|
+
common,
|
|
1101
1111
|
eslintComments,
|
|
1102
1112
|
getVueVersion,
|
|
1103
1113
|
imports,
|
|
1104
1114
|
js,
|
|
1115
|
+
jsonOrder,
|
|
1105
1116
|
jsonc,
|
|
1106
1117
|
jsx,
|
|
1107
1118
|
markdown,
|
|
1108
1119
|
ntnyq,
|
|
1109
|
-
pkgOrder,
|
|
1110
1120
|
prettier,
|
|
1111
1121
|
react,
|
|
1112
1122
|
reactHooksPlugin,
|
|
@@ -1115,6 +1125,7 @@ function ntnyq(config = [], {
|
|
|
1115
1125
|
tsParser,
|
|
1116
1126
|
tsPlugin,
|
|
1117
1127
|
unicorn,
|
|
1128
|
+
unocss,
|
|
1118
1129
|
vue,
|
|
1119
1130
|
vueParser,
|
|
1120
1131
|
vuePlugin,
|
package/dist/index.d.cts
CHANGED
|
@@ -35,9 +35,10 @@ declare const GLOB_LOCKFILE: string[];
|
|
|
35
35
|
declare const GLOB_EXCLUDE: string[];
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* only js and ts
|
|
39
39
|
*/
|
|
40
40
|
declare const basic: FlatESLintConfig[];
|
|
41
|
+
declare const common: FlatESLintConfig[];
|
|
41
42
|
/**
|
|
42
43
|
* all supported framework
|
|
43
44
|
*/
|
|
@@ -45,12 +46,11 @@ declare const all: FlatESLintConfig[];
|
|
|
45
46
|
/**
|
|
46
47
|
* custom framework support
|
|
47
48
|
*/
|
|
48
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro,
|
|
49
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, unocss: enableUnoCSS, }?: {
|
|
49
50
|
vue?: boolean | undefined;
|
|
50
51
|
react?: boolean | undefined;
|
|
51
52
|
astro?: boolean | undefined;
|
|
52
|
-
|
|
53
|
-
markdown?: boolean | undefined;
|
|
53
|
+
unocss?: boolean | undefined;
|
|
54
54
|
}): FlatESLintConfig[];
|
|
55
55
|
|
|
56
56
|
declare const js: FlatESLintConfig[];
|
|
@@ -70,7 +70,9 @@ declare const react: FlatESLintConfig[];
|
|
|
70
70
|
declare const astro: FlatESLintConfig[];
|
|
71
71
|
|
|
72
72
|
declare const jsonc: FlatESLintConfig[];
|
|
73
|
-
declare const
|
|
73
|
+
declare const jsonOrder: FlatESLintConfig[];
|
|
74
|
+
|
|
75
|
+
declare const unocss: FlatESLintConfig[];
|
|
74
76
|
|
|
75
77
|
declare const prettier: FlatESLintConfig[];
|
|
76
78
|
|
|
@@ -78,4 +80,4 @@ declare const markdown: FlatESLintConfig[];
|
|
|
78
80
|
|
|
79
81
|
declare const eslintComments: FlatESLintConfig[];
|
|
80
82
|
|
|
81
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq,
|
|
83
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, common, eslintComments, getVueVersion, imports, js, jsonOrder, jsonc, jsx, markdown, ntnyq, prettier, react, ts, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -35,9 +35,10 @@ declare const GLOB_LOCKFILE: string[];
|
|
|
35
35
|
declare const GLOB_EXCLUDE: string[];
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* only js and ts
|
|
39
39
|
*/
|
|
40
40
|
declare const basic: FlatESLintConfig[];
|
|
41
|
+
declare const common: FlatESLintConfig[];
|
|
41
42
|
/**
|
|
42
43
|
* all supported framework
|
|
43
44
|
*/
|
|
@@ -45,12 +46,11 @@ declare const all: FlatESLintConfig[];
|
|
|
45
46
|
/**
|
|
46
47
|
* custom framework support
|
|
47
48
|
*/
|
|
48
|
-
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro,
|
|
49
|
+
declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, unocss: enableUnoCSS, }?: {
|
|
49
50
|
vue?: boolean | undefined;
|
|
50
51
|
react?: boolean | undefined;
|
|
51
52
|
astro?: boolean | undefined;
|
|
52
|
-
|
|
53
|
-
markdown?: boolean | undefined;
|
|
53
|
+
unocss?: boolean | undefined;
|
|
54
54
|
}): FlatESLintConfig[];
|
|
55
55
|
|
|
56
56
|
declare const js: FlatESLintConfig[];
|
|
@@ -70,7 +70,9 @@ declare const react: FlatESLintConfig[];
|
|
|
70
70
|
declare const astro: FlatESLintConfig[];
|
|
71
71
|
|
|
72
72
|
declare const jsonc: FlatESLintConfig[];
|
|
73
|
-
declare const
|
|
73
|
+
declare const jsonOrder: FlatESLintConfig[];
|
|
74
|
+
|
|
75
|
+
declare const unocss: FlatESLintConfig[];
|
|
74
76
|
|
|
75
77
|
declare const prettier: FlatESLintConfig[];
|
|
76
78
|
|
|
@@ -78,4 +80,4 @@ declare const markdown: FlatESLintConfig[];
|
|
|
78
80
|
|
|
79
81
|
declare const eslintComments: FlatESLintConfig[];
|
|
80
82
|
|
|
81
|
-
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, eslintComments, getVueVersion, imports, js, jsonc, jsx, markdown, ntnyq,
|
|
83
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_NODE_MODULES, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, all, astro, basic, common, eslintComments, getVueVersion, imports, js, jsonOrder, jsonc, jsx, markdown, ntnyq, prettier, react, ts, unicorn, unocss, vue, yml };
|
package/dist/index.js
CHANGED
|
@@ -255,7 +255,7 @@ var js = [
|
|
|
255
255
|
semi: ["error", "never"],
|
|
256
256
|
"semi-spacing": ["error", { before: false, after: true }],
|
|
257
257
|
"space-before-blocks": ["error", "always"],
|
|
258
|
-
"space-before-function-paren": ["error", "
|
|
258
|
+
"space-before-function-paren": ["error", "never"],
|
|
259
259
|
"space-in-parens": ["error", "never"],
|
|
260
260
|
"space-infix-ops": "error",
|
|
261
261
|
"space-unary-ops": ["error", { words: true, nonwords: false }],
|
|
@@ -720,7 +720,7 @@ var react = [
|
|
|
720
720
|
|
|
721
721
|
// src/configs/astro.ts
|
|
722
722
|
import astroPlugin, { configs as configs2 } from "eslint-plugin-astro";
|
|
723
|
-
import astroParser from "astro-eslint-parser";
|
|
723
|
+
import * as astroParser from "astro-eslint-parser";
|
|
724
724
|
var astro = [
|
|
725
725
|
{
|
|
726
726
|
files: [GLOB_ASTRO],
|
|
@@ -743,7 +743,7 @@ var astro = [
|
|
|
743
743
|
|
|
744
744
|
// src/configs/jsonc.ts
|
|
745
745
|
import jsoncPlugin, { configs as configs3 } from "eslint-plugin-jsonc";
|
|
746
|
-
import jsoncParser from "jsonc-eslint-parser";
|
|
746
|
+
import * as jsoncParser from "jsonc-eslint-parser";
|
|
747
747
|
var jsonc = [
|
|
748
748
|
{
|
|
749
749
|
files: [GLOB_JSON, GLOB_JSON5, GLOB_JSONC, "**/*rc"],
|
|
@@ -785,7 +785,7 @@ var jsonc = [
|
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
];
|
|
788
|
-
var
|
|
788
|
+
var jsonOrder = [
|
|
789
789
|
{
|
|
790
790
|
files: ["**/package.json"],
|
|
791
791
|
rules: {
|
|
@@ -864,6 +864,19 @@ var pkgOrder = [
|
|
|
864
864
|
}
|
|
865
865
|
];
|
|
866
866
|
|
|
867
|
+
// src/configs/unocss.ts
|
|
868
|
+
import unocssPlugin from "@unocss/eslint-plugin";
|
|
869
|
+
var unocss = [
|
|
870
|
+
{
|
|
871
|
+
plugins: {
|
|
872
|
+
"@unocss": unocssPlugin
|
|
873
|
+
},
|
|
874
|
+
rules: {
|
|
875
|
+
...unocssPlugin.configs.recommended.rules
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
];
|
|
879
|
+
|
|
867
880
|
// src/configs/prettier.ts
|
|
868
881
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
869
882
|
import prettierConfig from "eslint-config-prettier";
|
|
@@ -945,29 +958,26 @@ var basic = [
|
|
|
945
958
|
...js,
|
|
946
959
|
...jsx,
|
|
947
960
|
...ts,
|
|
948
|
-
...yml,
|
|
949
961
|
...imports,
|
|
950
962
|
...unicorn,
|
|
951
|
-
...jsonc,
|
|
952
|
-
...pkgOrder,
|
|
953
963
|
...eslintComments
|
|
954
964
|
];
|
|
955
|
-
var
|
|
965
|
+
var common = [
|
|
956
966
|
...basic,
|
|
957
|
-
...
|
|
958
|
-
...
|
|
959
|
-
...
|
|
967
|
+
...yml,
|
|
968
|
+
...jsonc,
|
|
969
|
+
...jsonOrder,
|
|
960
970
|
...prettier,
|
|
961
971
|
...markdown
|
|
962
972
|
];
|
|
973
|
+
var all = [...common, ...vue, ...react, ...astro, ...unocss];
|
|
963
974
|
function ntnyq(config = [], {
|
|
964
975
|
vue: enableVue = false,
|
|
965
976
|
react: enableReact = false,
|
|
966
977
|
astro: enableAstro = false,
|
|
967
|
-
|
|
968
|
-
markdown: enableMarkdown = false
|
|
978
|
+
unocss: enableUnoCSS = false
|
|
969
979
|
} = {}) {
|
|
970
|
-
const configs4 = [...
|
|
980
|
+
const configs4 = [...common];
|
|
971
981
|
if (enableVue) {
|
|
972
982
|
configs4.push(...vue);
|
|
973
983
|
}
|
|
@@ -977,11 +987,8 @@ function ntnyq(config = [], {
|
|
|
977
987
|
if (enableAstro) {
|
|
978
988
|
configs4.push(...astro);
|
|
979
989
|
}
|
|
980
|
-
if (
|
|
981
|
-
configs4.push(...
|
|
982
|
-
}
|
|
983
|
-
if (enablePrettier) {
|
|
984
|
-
configs4.push(...prettier);
|
|
990
|
+
if (enableUnoCSS) {
|
|
991
|
+
configs4.push(...unocss);
|
|
985
992
|
}
|
|
986
993
|
if (Object.keys(config).length > 0) {
|
|
987
994
|
configs4.push(...Array.isArray(config) ? config : [config]);
|
|
@@ -1015,15 +1022,16 @@ export {
|
|
|
1015
1022
|
all,
|
|
1016
1023
|
astro,
|
|
1017
1024
|
basic,
|
|
1025
|
+
common,
|
|
1018
1026
|
eslintComments,
|
|
1019
1027
|
getVueVersion,
|
|
1020
1028
|
imports,
|
|
1021
1029
|
js,
|
|
1030
|
+
jsonOrder,
|
|
1022
1031
|
jsonc,
|
|
1023
1032
|
jsx,
|
|
1024
1033
|
markdown,
|
|
1025
1034
|
ntnyq,
|
|
1026
|
-
pkgOrder,
|
|
1027
1035
|
prettier,
|
|
1028
1036
|
react,
|
|
1029
1037
|
reactHooksPlugin,
|
|
@@ -1032,6 +1040,7 @@ export {
|
|
|
1032
1040
|
tsParser,
|
|
1033
1041
|
tsPlugin,
|
|
1034
1042
|
unicorn,
|
|
1043
|
+
unocss,
|
|
1035
1044
|
vue,
|
|
1036
1045
|
vueParser,
|
|
1037
1046
|
vuePlugin,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
5
|
-
"packageManager": "pnpm@8.7.
|
|
4
|
+
"version": "2.0.0-beta.18",
|
|
5
|
+
"packageManager": "pnpm@8.7.6",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"repository": "ntnyq/eslint-config",
|
|
19
19
|
"exports": {
|
|
20
|
+
"./package.json": "./package.json",
|
|
20
21
|
".": {
|
|
21
22
|
"import": {
|
|
22
23
|
"types": "./dist/index.d.ts",
|
|
@@ -41,9 +42,10 @@
|
|
|
41
42
|
"eslint": "^8.30.0"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@eslint/js": "^8.
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
46
|
-
"@typescript-eslint/parser": "^6.
|
|
45
|
+
"@eslint/js": "^8.49.0",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
47
|
+
"@typescript-eslint/parser": "^6.7.2",
|
|
48
|
+
"@unocss/eslint-plugin": "^0.56.0",
|
|
47
49
|
"astro-eslint-parser": "^0.15.0",
|
|
48
50
|
"eslint-config-prettier": "^9.0.0",
|
|
49
51
|
"eslint-define-config": "^1.23.0",
|
|
@@ -57,29 +59,29 @@
|
|
|
57
59
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
58
60
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
59
61
|
"eslint-plugin-vue": "^9.17.0",
|
|
60
|
-
"eslint-plugin-yml": "^1.
|
|
62
|
+
"eslint-plugin-yml": "^1.9.0",
|
|
61
63
|
"globals": "^13.21.0",
|
|
62
64
|
"jsonc-eslint-parser": "^2.3.0",
|
|
63
65
|
"local-pkg": "^0.4.3",
|
|
64
|
-
"prettier": "^3.0.
|
|
66
|
+
"prettier": "^3.0.3",
|
|
65
67
|
"vue-eslint-parser": "^9.3.1",
|
|
66
68
|
"yaml-eslint-parser": "^1.2.2"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
|
-
"@ntnyq/prettier-config": "^1.
|
|
70
|
-
"@types/node": "^20.
|
|
71
|
+
"@ntnyq/prettier-config": "^1.14.0",
|
|
72
|
+
"@types/node": "^20.6.3",
|
|
71
73
|
"bumpp": "^9.2.0",
|
|
72
|
-
"eslint": "^8.
|
|
74
|
+
"eslint": "^8.49.0",
|
|
73
75
|
"husky": "^8.0.3",
|
|
74
76
|
"nano-staged": "^0.8.0",
|
|
75
77
|
"npm-run-all": "^4.1.5",
|
|
76
|
-
"pnpm": "^8.7.
|
|
78
|
+
"pnpm": "^8.7.6",
|
|
77
79
|
"rimraf": "^5.0.1",
|
|
78
80
|
"tsup": "^7.2.0",
|
|
79
81
|
"typescript": "5.2.2"
|
|
80
82
|
},
|
|
81
83
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
84
|
+
"node": ">=18.12"
|
|
83
85
|
},
|
|
84
86
|
"prettier": "@ntnyq/prettier-config",
|
|
85
87
|
"nano-staged": {
|