@ntnyq/eslint-config 2.0.0-beta.15 → 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,
@@ -636,8 +637,7 @@ var ts = [
636
637
  languageOptions: {
637
638
  parser: tsParser,
638
639
  parserOptions: {
639
- sourceType: "module",
640
- project: true
640
+ sourceType: "module"
641
641
  }
642
642
  },
643
643
  plugins: {
@@ -947,6 +947,19 @@ var pkgOrder = [
947
947
  }
948
948
  ];
949
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
+
950
963
  // src/configs/prettier.ts
951
964
  var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
952
965
  var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
@@ -965,7 +978,7 @@ var prettier = [
965
978
 
966
979
  // src/configs/markdown.ts
967
980
  var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
968
- var import_eslint_plugin3 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
981
+ var import_eslint_plugin4 = __toESM(require("@typescript-eslint/eslint-plugin"), 1);
969
982
  var markdown = [
970
983
  {
971
984
  files: [GLOB_MARKDOWN],
@@ -984,7 +997,7 @@ var markdown = [
984
997
  }
985
998
  },
986
999
  plugins: {
987
- "@typescript-eslint": import_eslint_plugin3.default
1000
+ "@typescript-eslint": import_eslint_plugin4.default
988
1001
  },
989
1002
  rules: {
990
1003
  ...import_eslint_plugin_markdown.default.configs.recommended.overrides[1].rules,
@@ -1040,6 +1053,7 @@ var all = [
1040
1053
  ...vue,
1041
1054
  ...react,
1042
1055
  ...astro,
1056
+ ...unocss,
1043
1057
  ...prettier,
1044
1058
  ...markdown
1045
1059
  ];
@@ -1048,7 +1062,8 @@ function ntnyq(config = [], {
1048
1062
  react: enableReact = false,
1049
1063
  astro: enableAstro = false,
1050
1064
  prettier: enablePrettier = false,
1051
- markdown: enableMarkdown = false
1065
+ markdown: enableMarkdown = false,
1066
+ unocss: enableUnoCSS = false
1052
1067
  } = {}) {
1053
1068
  const configs4 = [...basic];
1054
1069
  if (enableVue) {
@@ -1060,6 +1075,9 @@ function ntnyq(config = [], {
1060
1075
  if (enableAstro) {
1061
1076
  configs4.push(...astro);
1062
1077
  }
1078
+ if (enableUnoCSS) {
1079
+ configs4.push(...unocss);
1080
+ }
1063
1081
  if (enableMarkdown) {
1064
1082
  configs4.push(...markdown);
1065
1083
  }
@@ -1116,6 +1134,7 @@ function ntnyq(config = [], {
1116
1134
  tsParser,
1117
1135
  tsPlugin,
1118
1136
  unicorn,
1137
+ unocss,
1119
1138
  vue,
1120
1139
  vueParser,
1121
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
@@ -554,8 +554,7 @@ var ts = [
554
554
  languageOptions: {
555
555
  parser: tsParser,
556
556
  parserOptions: {
557
- sourceType: "module",
558
- project: true
557
+ sourceType: "module"
559
558
  }
560
559
  },
561
560
  plugins: {
@@ -865,6 +864,19 @@ var pkgOrder = [
865
864
  }
866
865
  ];
867
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
+
868
880
  // src/configs/prettier.ts
869
881
  import prettierPlugin from "eslint-plugin-prettier";
870
882
  import prettierConfig from "eslint-config-prettier";
@@ -958,6 +970,7 @@ var all = [
958
970
  ...vue,
959
971
  ...react,
960
972
  ...astro,
973
+ ...unocss,
961
974
  ...prettier,
962
975
  ...markdown
963
976
  ];
@@ -966,7 +979,8 @@ function ntnyq(config = [], {
966
979
  react: enableReact = false,
967
980
  astro: enableAstro = false,
968
981
  prettier: enablePrettier = false,
969
- markdown: enableMarkdown = false
982
+ markdown: enableMarkdown = false,
983
+ unocss: enableUnoCSS = false
970
984
  } = {}) {
971
985
  const configs4 = [...basic];
972
986
  if (enableVue) {
@@ -978,6 +992,9 @@ function ntnyq(config = [], {
978
992
  if (enableAstro) {
979
993
  configs4.push(...astro);
980
994
  }
995
+ if (enableUnoCSS) {
996
+ configs4.push(...unocss);
997
+ }
981
998
  if (enableMarkdown) {
982
999
  configs4.push(...markdown);
983
1000
  }
@@ -1033,6 +1050,7 @@ export {
1033
1050
  tsParser,
1034
1051
  tsPlugin,
1035
1052
  unicorn,
1053
+ unocss,
1036
1054
  vue,
1037
1055
  vueParser,
1038
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.15",
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": {