@ntnyq/eslint-config 2.6.1 → 2.6.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 +9 -3
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +9 -3
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -246,7 +246,7 @@ var import_eslint_plugin_unicorn = __toESM(require("eslint-plugin-unicorn"), 1);
|
|
|
246
246
|
var import_eslint_plugin_import_x = __toESM(require("eslint-plugin-import-x"), 1);
|
|
247
247
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
248
248
|
var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
|
|
249
|
-
var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"), 1);
|
|
249
|
+
var import_eslint_plugin_unused_imports = __toESM(require("@antfu/eslint-plugin-unused-imports"), 1);
|
|
250
250
|
var import_eslint_plugin_eslint_comments = __toESM(require("@eslint-community/eslint-plugin-eslint-comments"), 1);
|
|
251
251
|
var parserToml = __toESM(require("toml-eslint-parser"), 1);
|
|
252
252
|
var parserYaml = __toESM(require("yaml-eslint-parser"), 1);
|
|
@@ -993,6 +993,8 @@ var yml = defineConfig([
|
|
|
993
993
|
yml: import_eslint_plugin_yml.default
|
|
994
994
|
},
|
|
995
995
|
rules: {
|
|
996
|
+
// Avoid conflicts with js comment
|
|
997
|
+
"spaced-comment": "off",
|
|
996
998
|
...import_eslint_plugin_yml.default.configs.standard.rules,
|
|
997
999
|
...import_eslint_plugin_yml.default.configs.prettier.rules,
|
|
998
1000
|
"yml/no-empty-mapping-value": "off",
|
|
@@ -1013,6 +1015,10 @@ var toml = defineConfig([
|
|
|
1013
1015
|
toml: import_eslint_plugin_toml.default
|
|
1014
1016
|
},
|
|
1015
1017
|
rules: {
|
|
1018
|
+
// Prettier do not have official support for TOML currently
|
|
1019
|
+
"prettier/prettier": "off",
|
|
1020
|
+
// Avoid conflicts with js comment
|
|
1021
|
+
"spaced-comment": "off",
|
|
1016
1022
|
"toml/comma-style": "error",
|
|
1017
1023
|
"toml/keys-order": "error",
|
|
1018
1024
|
"toml/no-space-dots": "error",
|
|
@@ -1023,8 +1029,8 @@ var toml = defineConfig([
|
|
|
1023
1029
|
"toml/indent": ["error", 2],
|
|
1024
1030
|
"toml/vue-custom-block/no-parsing-error": "error",
|
|
1025
1031
|
"toml/array-bracket-newline": "error",
|
|
1026
|
-
"toml/array-bracket-spacing": "error",
|
|
1027
|
-
"toml/array-element-newline": "error",
|
|
1032
|
+
"toml/array-bracket-spacing": ["error", "never"],
|
|
1033
|
+
"toml/array-element-newline": ["error", "never"],
|
|
1028
1034
|
"toml/inline-table-curly-spacing": "error",
|
|
1029
1035
|
"toml/key-spacing": "error",
|
|
1030
1036
|
"toml/padding-line-between-pairs": "error",
|
package/dist/index.d.cts
CHANGED
|
@@ -13,7 +13,7 @@ export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
|
13
13
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
14
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
15
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
|
-
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
16
|
+
export { default as pluginUnusedImports } from '@antfu/eslint-plugin-unused-imports';
|
|
17
17
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
18
18
|
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
19
19
|
export { tomlEslintParser as parserToml };
|
|
@@ -1281,6 +1281,11 @@ interface RuleOptions {
|
|
|
1281
1281
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
1282
1282
|
*/
|
|
1283
1283
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
1284
|
+
/**
|
|
1285
|
+
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
1286
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
1287
|
+
*/
|
|
1288
|
+
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
1284
1289
|
/**
|
|
1285
1290
|
* Reports invalid types.
|
|
1286
1291
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
|
13
13
|
export { default as pluginImport } from 'eslint-plugin-import-x';
|
|
14
14
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
15
15
|
export { default as pluginMarkdown } from 'eslint-plugin-markdown';
|
|
16
|
-
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
16
|
+
export { default as pluginUnusedImports } from '@antfu/eslint-plugin-unused-imports';
|
|
17
17
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
18
18
|
import * as tomlEslintParser from 'toml-eslint-parser';
|
|
19
19
|
export { tomlEslintParser as parserToml };
|
|
@@ -1281,6 +1281,11 @@ interface RuleOptions {
|
|
|
1281
1281
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
|
|
1282
1282
|
*/
|
|
1283
1283
|
'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
|
|
1284
|
+
/**
|
|
1285
|
+
* Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
|
|
1286
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
1287
|
+
*/
|
|
1288
|
+
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
1284
1289
|
/**
|
|
1285
1290
|
* Reports invalid types.
|
|
1286
1291
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ import { default as default9 } from "eslint-plugin-unicorn";
|
|
|
132
132
|
import { default as default10 } from "eslint-plugin-import-x";
|
|
133
133
|
import { default as default11 } from "eslint-plugin-prettier";
|
|
134
134
|
import { default as default12 } from "eslint-plugin-markdown";
|
|
135
|
-
import { default as default13 } from "eslint-plugin-unused-imports";
|
|
135
|
+
import { default as default13 } from "@antfu/eslint-plugin-unused-imports";
|
|
136
136
|
import { default as default14 } from "@eslint-community/eslint-plugin-eslint-comments";
|
|
137
137
|
import * as parserToml from "toml-eslint-parser";
|
|
138
138
|
import * as parserYaml from "yaml-eslint-parser";
|
|
@@ -879,6 +879,8 @@ var yml = defineConfig([
|
|
|
879
879
|
yml: default4
|
|
880
880
|
},
|
|
881
881
|
rules: {
|
|
882
|
+
// Avoid conflicts with js comment
|
|
883
|
+
"spaced-comment": "off",
|
|
882
884
|
...default4.configs.standard.rules,
|
|
883
885
|
...default4.configs.prettier.rules,
|
|
884
886
|
"yml/no-empty-mapping-value": "off",
|
|
@@ -899,6 +901,10 @@ var toml = defineConfig([
|
|
|
899
901
|
toml: default5
|
|
900
902
|
},
|
|
901
903
|
rules: {
|
|
904
|
+
// Prettier do not have official support for TOML currently
|
|
905
|
+
"prettier/prettier": "off",
|
|
906
|
+
// Avoid conflicts with js comment
|
|
907
|
+
"spaced-comment": "off",
|
|
902
908
|
"toml/comma-style": "error",
|
|
903
909
|
"toml/keys-order": "error",
|
|
904
910
|
"toml/no-space-dots": "error",
|
|
@@ -909,8 +915,8 @@ var toml = defineConfig([
|
|
|
909
915
|
"toml/indent": ["error", 2],
|
|
910
916
|
"toml/vue-custom-block/no-parsing-error": "error",
|
|
911
917
|
"toml/array-bracket-newline": "error",
|
|
912
|
-
"toml/array-bracket-spacing": "error",
|
|
913
|
-
"toml/array-element-newline": "error",
|
|
918
|
+
"toml/array-bracket-spacing": ["error", "never"],
|
|
919
|
+
"toml/array-element-newline": ["error", "never"],
|
|
914
920
|
"toml/inline-table-curly-spacing": "error",
|
|
915
921
|
"toml/key-spacing": "error",
|
|
916
922
|
"toml/padding-line-between-pairs": "error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.3",
|
|
5
5
|
"packageManager": "pnpm@9.5.0",
|
|
6
6
|
"description": "ESLint flat config of ntnyq",
|
|
7
7
|
"keywords": [
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"eslint": "^9.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
+
"@antfu/eslint-plugin-unused-imports": "^4.0.0",
|
|
58
59
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
59
60
|
"@eslint/js": "^9.7.0",
|
|
60
61
|
"@types/eslint": "^8.56.10",
|
|
@@ -63,15 +64,14 @@
|
|
|
63
64
|
"eslint-flat-config-utils": "^0.2.5",
|
|
64
65
|
"eslint-plugin-command": "^0.2.3",
|
|
65
66
|
"eslint-plugin-import-x": "^3.0.1",
|
|
66
|
-
"eslint-plugin-jsdoc": "^48.
|
|
67
|
+
"eslint-plugin-jsdoc": "^48.8.3",
|
|
67
68
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
68
69
|
"eslint-plugin-markdown": "^5.1.0",
|
|
69
70
|
"eslint-plugin-n": "^17.9.0",
|
|
70
|
-
"eslint-plugin-prettier": "^5.1
|
|
71
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
71
72
|
"eslint-plugin-regexp": "^2.6.0",
|
|
72
73
|
"eslint-plugin-toml": "^0.11.1",
|
|
73
74
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
74
|
-
"eslint-plugin-unused-imports": "^4.0.0",
|
|
75
75
|
"eslint-plugin-vue": "^9.27.0",
|
|
76
76
|
"eslint-plugin-yml": "^1.14.0",
|
|
77
77
|
"globals": "^15.8.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"local-pkg": "^0.5.0",
|
|
80
80
|
"prettier": "^3.3.3",
|
|
81
81
|
"toml-eslint-parser": "^0.10.0",
|
|
82
|
-
"typescript-eslint": "^8.0.0-alpha.
|
|
82
|
+
"typescript-eslint": "^8.0.0-alpha.47",
|
|
83
83
|
"vue-eslint-parser": "^9.4.3",
|
|
84
84
|
"yaml-eslint-parser": "^1.2.3"
|
|
85
85
|
},
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"bumpp": "^9.4.1",
|
|
90
90
|
"eslint": "^9.7.0",
|
|
91
91
|
"eslint-typegen": "^0.2.4",
|
|
92
|
-
"husky": "^9.
|
|
92
|
+
"husky": "^9.1.1",
|
|
93
93
|
"nano-staged": "^0.8.0",
|
|
94
94
|
"npm-run-all2": "^6.2.2",
|
|
95
95
|
"rimraf": "^6.0.1",
|
|
96
|
-
"tsup": "^8.1
|
|
96
|
+
"tsup": "^8.2.1",
|
|
97
97
|
"tsx": "^4.16.2",
|
|
98
98
|
"typescript": "^5.5.3",
|
|
99
99
|
"zx": "^8.1.4"
|