@ntnyq/eslint-config 2.5.1 → 2.5.3
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 +15 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +14 -3
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
GLOB_ALL_SRC: () => GLOB_ALL_SRC,
|
|
34
34
|
GLOB_CSS: () => GLOB_CSS,
|
|
35
35
|
GLOB_DIST: () => GLOB_DIST,
|
|
36
|
+
GLOB_DTS: () => GLOB_DTS,
|
|
36
37
|
GLOB_EXCLUDE: () => GLOB_EXCLUDE,
|
|
37
38
|
GLOB_HTML: () => GLOB_HTML,
|
|
38
39
|
GLOB_JS: () => GLOB_JS,
|
|
@@ -126,6 +127,7 @@ var GLOB_JS = "**/*.?([cm])js";
|
|
|
126
127
|
var GLOB_JSX = "**/*.?([cm])jsx";
|
|
127
128
|
var GLOB_TS = "**/*.?([cm])ts";
|
|
128
129
|
var GLOB_TSX = "**/*.?([cm])tsx";
|
|
130
|
+
var GLOB_DTS = "**/*.d.?([cm])ts";
|
|
129
131
|
var GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
130
132
|
var GLOB_CSS = "**/*.css";
|
|
131
133
|
var GLOB_LESS = "**/*.less";
|
|
@@ -191,6 +193,7 @@ var GLOB_EXCLUDE = [
|
|
|
191
193
|
"**/.tsup",
|
|
192
194
|
"**/.nitro",
|
|
193
195
|
"**/.vercel",
|
|
196
|
+
"**/.wrangler",
|
|
194
197
|
"**/.changeset",
|
|
195
198
|
"**/.npmrc",
|
|
196
199
|
"**/.yarnrc"
|
|
@@ -840,6 +843,13 @@ var typescriptCore = import_typescript_eslint.default.config({
|
|
|
840
843
|
disallowTypeAnnotations: false
|
|
841
844
|
}
|
|
842
845
|
],
|
|
846
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
847
|
+
"error",
|
|
848
|
+
{
|
|
849
|
+
allowInterfaces: "always",
|
|
850
|
+
allowObjectTypes: "always"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
843
853
|
"@typescript-eslint/consistent-type-assertions": [
|
|
844
854
|
"error",
|
|
845
855
|
{
|
|
@@ -856,7 +866,6 @@ var typescriptCore = import_typescript_eslint.default.config({
|
|
|
856
866
|
"@typescript-eslint/no-explicit-any": "off",
|
|
857
867
|
"@typescript-eslint/no-empty-function": "off",
|
|
858
868
|
"@typescript-eslint/naming-convention": "off",
|
|
859
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
860
869
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
861
870
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
862
871
|
"@typescript-eslint/no-parameter-properties": "off",
|
|
@@ -870,8 +879,10 @@ var typescript = defineConfig([
|
|
|
870
879
|
...typescriptCore,
|
|
871
880
|
{
|
|
872
881
|
name: "ntnyq/ts/dts",
|
|
873
|
-
files: [
|
|
882
|
+
files: [GLOB_DTS],
|
|
874
883
|
rules: {
|
|
884
|
+
"no-use-before-define": "off",
|
|
885
|
+
"no-restricted-syntax": "off",
|
|
875
886
|
"import/no-duplicates": "off",
|
|
876
887
|
"import/newline-after-import": "off"
|
|
877
888
|
}
|
|
@@ -886,7 +897,7 @@ var typescript = defineConfig([
|
|
|
886
897
|
},
|
|
887
898
|
{
|
|
888
899
|
name: "ntnyq/ts/cjs",
|
|
889
|
-
files: [GLOB_JS
|
|
900
|
+
files: [GLOB_JS],
|
|
890
901
|
rules: {
|
|
891
902
|
"@typescript-eslint/no-var-requires": "off"
|
|
892
903
|
}
|
|
@@ -1550,6 +1561,7 @@ function ntnyq(config = [], {
|
|
|
1550
1561
|
GLOB_ALL_SRC,
|
|
1551
1562
|
GLOB_CSS,
|
|
1552
1563
|
GLOB_DIST,
|
|
1564
|
+
GLOB_DTS,
|
|
1553
1565
|
GLOB_EXCLUDE,
|
|
1554
1566
|
GLOB_HTML,
|
|
1555
1567
|
GLOB_JS,
|
package/dist/index.d.cts
CHANGED
|
@@ -58,6 +58,7 @@ declare const GLOB_JS = "**/*.?([cm])js";
|
|
|
58
58
|
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
59
59
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
60
60
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
61
|
+
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
61
62
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
62
63
|
declare const GLOB_CSS = "**/*.css";
|
|
63
64
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -160,4 +161,4 @@ type InteropDefault<T> = T extends {
|
|
|
160
161
|
} ? U : T;
|
|
161
162
|
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
162
163
|
|
|
163
|
-
export { type ESLintPlugin, type FlatConfig, GLOB_ALL_SRC, 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, type InteropDefault, type RuleRecord, type RuleRecordEntry, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, regexp, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
|
164
|
+
export { type ESLintPlugin, type FlatConfig, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, 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, type InteropDefault, type RuleRecord, type RuleRecordEntry, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, regexp, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ declare const GLOB_JS = "**/*.?([cm])js";
|
|
|
58
58
|
declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
59
59
|
declare const GLOB_TS = "**/*.?([cm])ts";
|
|
60
60
|
declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
61
|
+
declare const GLOB_DTS = "**/*.d.?([cm])ts";
|
|
61
62
|
declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
62
63
|
declare const GLOB_CSS = "**/*.css";
|
|
63
64
|
declare const GLOB_LESS = "**/*.less";
|
|
@@ -160,4 +161,4 @@ type InteropDefault<T> = T extends {
|
|
|
160
161
|
} ? U : T;
|
|
161
162
|
declare function interopDefault<T>(m: T): InteropDefault<T>;
|
|
162
163
|
|
|
163
|
-
export { type ESLintPlugin, type FlatConfig, GLOB_ALL_SRC, 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, type InteropDefault, type RuleRecord, type RuleRecordEntry, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, regexp, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
|
164
|
+
export { type ESLintPlugin, type FlatConfig, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_DTS, 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, type InteropDefault, type RuleRecord, type RuleRecordEntry, command, comments, defineConfig, getVueVersion, hasTypeScript, hasUnoCSS, hasVue, ignores, imports, interopDefault, javascript, jsdoc, jsonc, jsx, markdown, node, ntnyq, presetAll, presetBasic, presetCommon, presetJavaScript, presetJsonc, presetLanguageExtensions, prettier, regexp, sortPackageJson, sortTsConfig, typescript, typescriptCore, unicorn, unocss, vue, yml };
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var GLOB_JS = "**/*.?([cm])js";
|
|
|
20
20
|
var GLOB_JSX = "**/*.?([cm])jsx";
|
|
21
21
|
var GLOB_TS = "**/*.?([cm])ts";
|
|
22
22
|
var GLOB_TSX = "**/*.?([cm])tsx";
|
|
23
|
+
var GLOB_DTS = "**/*.d.?([cm])ts";
|
|
23
24
|
var GLOB_STYLE = "**/*.{c,le,sc}ss";
|
|
24
25
|
var GLOB_CSS = "**/*.css";
|
|
25
26
|
var GLOB_LESS = "**/*.less";
|
|
@@ -85,6 +86,7 @@ var GLOB_EXCLUDE = [
|
|
|
85
86
|
"**/.tsup",
|
|
86
87
|
"**/.nitro",
|
|
87
88
|
"**/.vercel",
|
|
89
|
+
"**/.wrangler",
|
|
88
90
|
"**/.changeset",
|
|
89
91
|
"**/.npmrc",
|
|
90
92
|
"**/.yarnrc"
|
|
@@ -734,6 +736,13 @@ var typescriptCore = tseslint.config({
|
|
|
734
736
|
disallowTypeAnnotations: false
|
|
735
737
|
}
|
|
736
738
|
],
|
|
739
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
740
|
+
"error",
|
|
741
|
+
{
|
|
742
|
+
allowInterfaces: "always",
|
|
743
|
+
allowObjectTypes: "always"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
737
746
|
"@typescript-eslint/consistent-type-assertions": [
|
|
738
747
|
"error",
|
|
739
748
|
{
|
|
@@ -750,7 +759,6 @@ var typescriptCore = tseslint.config({
|
|
|
750
759
|
"@typescript-eslint/no-explicit-any": "off",
|
|
751
760
|
"@typescript-eslint/no-empty-function": "off",
|
|
752
761
|
"@typescript-eslint/naming-convention": "off",
|
|
753
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
754
762
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
755
763
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
756
764
|
"@typescript-eslint/no-parameter-properties": "off",
|
|
@@ -764,8 +772,10 @@ var typescript = defineConfig([
|
|
|
764
772
|
...typescriptCore,
|
|
765
773
|
{
|
|
766
774
|
name: "ntnyq/ts/dts",
|
|
767
|
-
files: [
|
|
775
|
+
files: [GLOB_DTS],
|
|
768
776
|
rules: {
|
|
777
|
+
"no-use-before-define": "off",
|
|
778
|
+
"no-restricted-syntax": "off",
|
|
769
779
|
"import/no-duplicates": "off",
|
|
770
780
|
"import/newline-after-import": "off"
|
|
771
781
|
}
|
|
@@ -780,7 +790,7 @@ var typescript = defineConfig([
|
|
|
780
790
|
},
|
|
781
791
|
{
|
|
782
792
|
name: "ntnyq/ts/cjs",
|
|
783
|
-
files: [GLOB_JS
|
|
793
|
+
files: [GLOB_JS],
|
|
784
794
|
rules: {
|
|
785
795
|
"@typescript-eslint/no-var-requires": "off"
|
|
786
796
|
}
|
|
@@ -1443,6 +1453,7 @@ export {
|
|
|
1443
1453
|
GLOB_ALL_SRC,
|
|
1444
1454
|
GLOB_CSS,
|
|
1445
1455
|
GLOB_DIST,
|
|
1456
|
+
GLOB_DTS,
|
|
1446
1457
|
GLOB_EXCLUDE,
|
|
1447
1458
|
GLOB_HTML,
|
|
1448
1459
|
GLOB_JS,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "2.5.3",
|
|
5
|
+
"packageManager": "pnpm@9.5.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"eslint": "^9.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@eslint/js": "^9.
|
|
57
|
+
"@eslint/js": "^9.7.0",
|
|
58
58
|
"@types/eslint": "^8.56.10",
|
|
59
|
-
"@unocss/eslint-plugin": "^0.61.
|
|
59
|
+
"@unocss/eslint-plugin": "^0.61.3",
|
|
60
60
|
"eslint-config-prettier": "^9.1.0",
|
|
61
61
|
"eslint-plugin-command": "^0.2.3",
|
|
62
62
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
63
|
-
"eslint-plugin-import-x": "^0.
|
|
64
|
-
"eslint-plugin-jsdoc": "^48.
|
|
63
|
+
"eslint-plugin-import-x": "^3.0.1",
|
|
64
|
+
"eslint-plugin-jsdoc": "^48.7.0",
|
|
65
65
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
66
|
-
"eslint-plugin-markdown": "^5.
|
|
66
|
+
"eslint-plugin-markdown": "^5.1.0",
|
|
67
67
|
"eslint-plugin-n": "^17.9.0",
|
|
68
68
|
"eslint-plugin-prettier": "^5.1.3",
|
|
69
69
|
"eslint-plugin-regexp": "^2.6.0",
|
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
"jsonc-eslint-parser": "^2.4.0",
|
|
76
76
|
"local-pkg": "^0.5.0",
|
|
77
77
|
"prettier": "^3.3.2",
|
|
78
|
-
"typescript-eslint": "^8.0.0-alpha.
|
|
78
|
+
"typescript-eslint": "^8.0.0-alpha.41",
|
|
79
79
|
"vue-eslint-parser": "^9.4.3",
|
|
80
80
|
"yaml-eslint-parser": "^1.2.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@ntnyq/prettier-config": "^1.21.2",
|
|
84
|
-
"@types/node": "^20.14.
|
|
84
|
+
"@types/node": "^20.14.10",
|
|
85
85
|
"bumpp": "^9.4.1",
|
|
86
86
|
"eslint": "^9.6.0",
|
|
87
87
|
"husky": "^9.0.11",
|
|
88
88
|
"nano-staged": "^0.8.0",
|
|
89
89
|
"npm-run-all2": "^6.2.2",
|
|
90
|
-
"rimraf": "^
|
|
90
|
+
"rimraf": "^6.0.1",
|
|
91
91
|
"tsup": "^8.1.0",
|
|
92
92
|
"typescript": "^5.5.3",
|
|
93
93
|
"zx": "^8.1.4"
|