@ntnyq/eslint-config 2.0.0-beta.16 → 2.0.0-beta.17

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 CHANGED
@@ -73,6 +73,7 @@ __export(src_exports, {
73
73
  tsParser: () => tsParser,
74
74
  tsPlugin: () => import_eslint_plugin.default,
75
75
  unicorn: () => unicorn,
76
+ unocss: () => unocss,
76
77
  vue: () => vue,
77
78
  vueParser: () => import_vue_eslint_parser.default,
78
79
  vuePlugin: () => import_eslint_plugin_vue.default,
@@ -946,6 +947,19 @@ var pkgOrder = [
946
947
  }
947
948
  ];
948
949
 
950
+ // src/configs/unocss.ts
951
+ var import_eslint_plugin3 = __toESM(require("@unocss/eslint-plugin"), 1);
952
+ var unocss = [
953
+ {
954
+ plugins: {
955
+ "@unocss": import_eslint_plugin3.default
956
+ },
957
+ rules: {
958
+ ...import_eslint_plugin3.default.configs.recommended.rules
959
+ }
960
+ }
961
+ ];
962
+
949
963
  // src/configs/prettier.ts
950
964
  var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
951
965
  var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
@@ -964,7 +978,7 @@ var prettier = [
964
978
 
965
979
  // src/configs/markdown.ts
966
980
  var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
967
- var import_eslint_plugin3 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
981
+ var import_eslint_plugin4 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
968
982
  var markdown = [
969
983
  {
970
984
  files: [GLOB_MARKDOWN],
@@ -983,7 +997,7 @@ var markdown = [
983
997
  }
984
998
  },
985
999
  plugins: {
986
- "@typescript-eslint": import_eslint_plugin3.default
1000
+ "@typescript-eslint": import_eslint_plugin4.default
987
1001
  },
988
1002
  rules: {
989
1003
  ...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
@@ -1039,6 +1053,7 @@ var all = [
1039
1053
  ...vue,
1040
1054
  ...react,
1041
1055
  ...astro,
1056
+ ...unocss,
1042
1057
  ...prettier,
1043
1058
  ...markdown
1044
1059
  ];
@@ -1047,7 +1062,8 @@ function ntnyq(config = [], {
1047
1062
  react: enableReact = false,
1048
1063
  astro: enableAstro = false,
1049
1064
  prettier: enablePrettier = false,
1050
- markdown: enableMarkdown = false
1065
+ markdown: enableMarkdown = false,
1066
+ unocss: enableUnoCSS = false
1051
1067
  } = {}) {
1052
1068
  const configs4 = [...basic];
1053
1069
  if (enableVue) {
@@ -1059,6 +1075,9 @@ function ntnyq(config = [], {
1059
1075
  if (enableAstro) {
1060
1076
  configs4.push(...astro);
1061
1077
  }
1078
+ if (enableUnoCSS) {
1079
+ configs4.push(...unocss);
1080
+ }
1062
1081
  if (enableMarkdown) {
1063
1082
  configs4.push(...markdown);
1064
1083
  }
@@ -1115,6 +1134,7 @@ function ntnyq(config = [], {
1115
1134
  tsParser,
1116
1135
  tsPlugin,
1117
1136
  unicorn,
1137
+ unocss,
1118
1138
  vue,
1119
1139
  vueParser,
1120
1140
  vuePlugin,
package/dist/index.d.cts CHANGED
@@ -45,12 +45,13 @@ declare const all: FlatESLintConfig[];
45
45
  /**
46
46
  * custom framework support
47
47
  */
48
- declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, }?: {
48
+ declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnoCSS, }?: {
49
49
  vue?: boolean | undefined;
50
50
  react?: boolean | undefined;
51
51
  astro?: boolean | undefined;
52
52
  prettier?: boolean | undefined;
53
53
  markdown?: boolean | undefined;
54
+ unocss?: boolean | undefined;
54
55
  }): FlatESLintConfig[];
55
56
 
56
57
  declare const js: FlatESLintConfig[];
@@ -72,10 +73,12 @@ declare const astro: FlatESLintConfig[];
72
73
  declare const jsonc: FlatESLintConfig[];
73
74
  declare const pkgOrder: FlatESLintConfig[];
74
75
 
76
+ declare const unocss: FlatESLintConfig[];
77
+
75
78
  declare const prettier: FlatESLintConfig[];
76
79
 
77
80
  declare const markdown: FlatESLintConfig[];
78
81
 
79
82
  declare const eslintComments: FlatESLintConfig[];
80
83
 
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, pkgOrder, prettier, react, ts, unicorn, vue, yml };
84
+ 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, pkgOrder, prettier, react, ts, unicorn, unocss, vue, yml };
package/dist/index.d.ts CHANGED
@@ -45,12 +45,13 @@ declare const all: FlatESLintConfig[];
45
45
  /**
46
46
  * custom framework support
47
47
  */
48
- declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, }?: {
48
+ declare function ntnyq(config?: FlatESLintConfig | FlatESLintConfig[], { vue: enableVue, react: enableReact, astro: enableAstro, prettier: enablePrettier, markdown: enableMarkdown, unocss: enableUnoCSS, }?: {
49
49
  vue?: boolean | undefined;
50
50
  react?: boolean | undefined;
51
51
  astro?: boolean | undefined;
52
52
  prettier?: boolean | undefined;
53
53
  markdown?: boolean | undefined;
54
+ unocss?: boolean | undefined;
54
55
  }): FlatESLintConfig[];
55
56
 
56
57
  declare const js: FlatESLintConfig[];
@@ -72,10 +73,12 @@ declare const astro: FlatESLintConfig[];
72
73
  declare const jsonc: FlatESLintConfig[];
73
74
  declare const pkgOrder: FlatESLintConfig[];
74
75
 
76
+ declare const unocss: FlatESLintConfig[];
77
+
75
78
  declare const prettier: FlatESLintConfig[];
76
79
 
77
80
  declare const markdown: FlatESLintConfig[];
78
81
 
79
82
  declare const eslintComments: FlatESLintConfig[];
80
83
 
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, pkgOrder, prettier, react, ts, unicorn, vue, yml };
84
+ 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, pkgOrder, prettier, react, ts, unicorn, unocss, vue, yml };
package/dist/index.js CHANGED
@@ -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";
@@ -957,6 +970,7 @@ var all = [
957
970
  ...vue,
958
971
  ...react,
959
972
  ...astro,
973
+ ...unocss,
960
974
  ...prettier,
961
975
  ...markdown
962
976
  ];
@@ -965,7 +979,8 @@ function ntnyq(config = [], {
965
979
  react: enableReact = false,
966
980
  astro: enableAstro = false,
967
981
  prettier: enablePrettier = false,
968
- markdown: enableMarkdown = false
982
+ markdown: enableMarkdown = false,
983
+ unocss: enableUnoCSS = false
969
984
  } = {}) {
970
985
  const configs4 = [...basic];
971
986
  if (enableVue) {
@@ -977,6 +992,9 @@ function ntnyq(config = [], {
977
992
  if (enableAstro) {
978
993
  configs4.push(...astro);
979
994
  }
995
+ if (enableUnoCSS) {
996
+ configs4.push(...unocss);
997
+ }
980
998
  if (enableMarkdown) {
981
999
  configs4.push(...markdown);
982
1000
  }
@@ -1032,6 +1050,7 @@ export {
1032
1050
  tsParser,
1033
1051
  tsPlugin,
1034
1052
  unicorn,
1053
+ unocss,
1035
1054
  vue,
1036
1055
  vueParser,
1037
1056
  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.16",
5
- "packageManager": "pnpm@8.7.0",
4
+ "version": "2.0.0-beta.17",
5
+ "packageManager": "pnpm@8.7.5",
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.48.0",
45
- "@typescript-eslint/eslint-plugin": "^6.5.0",
46
- "@typescript-eslint/parser": "^6.5.0",
45
+ "@eslint/js": "^8.49.0",
46
+ "@typescript-eslint/eslint-plugin": "^6.7.0",
47
+ "@typescript-eslint/parser": "^6.7.0",
48
+ "@unocss/eslint-plugin": "^0.55.7",
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.8.0",
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.2",
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.12.4",
70
- "@types/node": "^20.5.7",
71
+ "@ntnyq/prettier-config": "^1.13.0",
72
+ "@types/node": "^20.6.0",
71
73
  "bumpp": "^9.2.0",
72
- "eslint": "^8.48.0",
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.0",
78
+ "pnpm": "^8.7.5",
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": ">=16.14.0"
84
+ "node": ">=18.12"
83
85
  },
84
86
  "prettier": "@ntnyq/prettier-config",
85
87
  "nano-staged": {