@ntnyq/eslint-config 2.5.1 → 2.5.2
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 +13 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +12 -3
- package/package.json +7 -7
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";
|
|
@@ -840,6 +842,12 @@ var typescriptCore = import_typescript_eslint.default.config({
|
|
|
840
842
|
disallowTypeAnnotations: false
|
|
841
843
|
}
|
|
842
844
|
],
|
|
845
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
846
|
+
"error",
|
|
847
|
+
{
|
|
848
|
+
allowInterfaces: "always"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
843
851
|
"@typescript-eslint/consistent-type-assertions": [
|
|
844
852
|
"error",
|
|
845
853
|
{
|
|
@@ -856,7 +864,6 @@ var typescriptCore = import_typescript_eslint.default.config({
|
|
|
856
864
|
"@typescript-eslint/no-explicit-any": "off",
|
|
857
865
|
"@typescript-eslint/no-empty-function": "off",
|
|
858
866
|
"@typescript-eslint/naming-convention": "off",
|
|
859
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
860
867
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
861
868
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
862
869
|
"@typescript-eslint/no-parameter-properties": "off",
|
|
@@ -870,8 +877,10 @@ var typescript = defineConfig([
|
|
|
870
877
|
...typescriptCore,
|
|
871
878
|
{
|
|
872
879
|
name: "ntnyq/ts/dts",
|
|
873
|
-
files: [
|
|
880
|
+
files: [GLOB_DTS],
|
|
874
881
|
rules: {
|
|
882
|
+
"no-use-before-define": "off",
|
|
883
|
+
"no-restricted-syntax": "off",
|
|
875
884
|
"import/no-duplicates": "off",
|
|
876
885
|
"import/newline-after-import": "off"
|
|
877
886
|
}
|
|
@@ -886,7 +895,7 @@ var typescript = defineConfig([
|
|
|
886
895
|
},
|
|
887
896
|
{
|
|
888
897
|
name: "ntnyq/ts/cjs",
|
|
889
|
-
files: [GLOB_JS
|
|
898
|
+
files: [GLOB_JS],
|
|
890
899
|
rules: {
|
|
891
900
|
"@typescript-eslint/no-var-requires": "off"
|
|
892
901
|
}
|
|
@@ -1550,6 +1559,7 @@ function ntnyq(config = [], {
|
|
|
1550
1559
|
GLOB_ALL_SRC,
|
|
1551
1560
|
GLOB_CSS,
|
|
1552
1561
|
GLOB_DIST,
|
|
1562
|
+
GLOB_DTS,
|
|
1553
1563
|
GLOB_EXCLUDE,
|
|
1554
1564
|
GLOB_HTML,
|
|
1555
1565
|
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";
|
|
@@ -734,6 +735,12 @@ var typescriptCore = tseslint.config({
|
|
|
734
735
|
disallowTypeAnnotations: false
|
|
735
736
|
}
|
|
736
737
|
],
|
|
738
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
739
|
+
"error",
|
|
740
|
+
{
|
|
741
|
+
allowInterfaces: "always"
|
|
742
|
+
}
|
|
743
|
+
],
|
|
737
744
|
"@typescript-eslint/consistent-type-assertions": [
|
|
738
745
|
"error",
|
|
739
746
|
{
|
|
@@ -750,7 +757,6 @@ var typescriptCore = tseslint.config({
|
|
|
750
757
|
"@typescript-eslint/no-explicit-any": "off",
|
|
751
758
|
"@typescript-eslint/no-empty-function": "off",
|
|
752
759
|
"@typescript-eslint/naming-convention": "off",
|
|
753
|
-
"@typescript-eslint/no-empty-object-type": "off",
|
|
754
760
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
755
761
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
756
762
|
"@typescript-eslint/no-parameter-properties": "off",
|
|
@@ -764,8 +770,10 @@ var typescript = defineConfig([
|
|
|
764
770
|
...typescriptCore,
|
|
765
771
|
{
|
|
766
772
|
name: "ntnyq/ts/dts",
|
|
767
|
-
files: [
|
|
773
|
+
files: [GLOB_DTS],
|
|
768
774
|
rules: {
|
|
775
|
+
"no-use-before-define": "off",
|
|
776
|
+
"no-restricted-syntax": "off",
|
|
769
777
|
"import/no-duplicates": "off",
|
|
770
778
|
"import/newline-after-import": "off"
|
|
771
779
|
}
|
|
@@ -780,7 +788,7 @@ var typescript = defineConfig([
|
|
|
780
788
|
},
|
|
781
789
|
{
|
|
782
790
|
name: "ntnyq/ts/cjs",
|
|
783
|
-
files: [GLOB_JS
|
|
791
|
+
files: [GLOB_JS],
|
|
784
792
|
rules: {
|
|
785
793
|
"@typescript-eslint/no-var-requires": "off"
|
|
786
794
|
}
|
|
@@ -1443,6 +1451,7 @@ export {
|
|
|
1443
1451
|
GLOB_ALL_SRC,
|
|
1444
1452
|
GLOB_CSS,
|
|
1445
1453
|
GLOB_DIST,
|
|
1454
|
+
GLOB_DTS,
|
|
1446
1455
|
GLOB_EXCLUDE,
|
|
1447
1456
|
GLOB_HTML,
|
|
1448
1457
|
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.2",
|
|
5
|
+
"packageManager": "pnpm@9.5.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"eslint",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@eslint/js": "^9.6.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.0",
|
|
64
|
+
"eslint-plugin-jsdoc": "^48.7.0",
|
|
65
65
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
66
66
|
"eslint-plugin-markdown": "^5.0.0",
|
|
67
67
|
"eslint-plugin-n": "^17.9.0",
|
|
@@ -81,13 +81,13 @@
|
|
|
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"
|