@ntnyq/eslint-config 6.1.5 → 7.0.0-beta.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/README.md CHANGED
@@ -4,17 +4,16 @@
4
4
 
5
5
  [![CI](https://github.com/ntnyq/eslint-config/workflows/CI/badge.svg)](https://github.com/ntnyq/eslint-config/actions)
6
6
  [![NPM VERSION](https://img.shields.io/npm/v/@ntnyq/eslint-config/latest.svg)](https://www.npmjs.com/package/@ntnyq/eslint-config/v/latest)
7
+ [![NPM NEXT VERSION](https://img.shields.io/npm/v/@ntnyq/eslint-config/next.svg)](https://www.npmjs.com/package/@ntnyq/eslint-config/v/next)
7
8
  [![NPM DOWNLOADS](https://img.shields.io/npm/dy/@ntnyq/eslint-config)](https://www.npmjs.com/package/@ntnyq/eslint-config)
8
9
  [![LICENSE](https://img.shields.io/github/license/ntnyq/eslint-config.svg)](https://github.com/ntnyq/eslint-config/blob/main/LICENSE)
9
10
 
10
- <!-- [![NPM NEXT VERSION](https://img.shields.io/npm/v/@ntnyq/eslint-config/next.svg)](https://www.npmjs.com/package/@ntnyq/eslint-config/v/next) -->
11
-
12
11
  > [!IMPORTANT]
13
12
  > Feel free to create and maintain your own fork if you think this is too opinionated.
14
13
 
15
14
  ## 📋 Requirements
16
15
 
17
- - Node.js ^20.19.0 || ^22.13.0 || >=24
16
+ - Node.js ^22.13.0 || >=24
18
17
  - ESLint ^9.38.0
19
18
 
20
19
  > [!TIP]
package/dist/index.d.mts CHANGED
@@ -2609,6 +2609,11 @@ interface RuleOptions {
2609
2609
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-test-case-name.md
2610
2610
  */
2611
2611
  'eslint-plugin/require-test-case-name'?: Linter.RuleEntry<EslintPluginRequireTestCaseName>;
2612
+ /**
2613
+ * requires the position of errors to be explicitly stated for all expected errors
2614
+ * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-test-error-positions.md
2615
+ */
2616
+ 'eslint-plugin/require-test-error-positions'?: Linter.RuleEntry<[]>;
2612
2617
  /**
2613
2618
  * require the properties of a test case to be placed in a consistent order
2614
2619
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md
@@ -5983,6 +5988,11 @@ interface RuleOptions {
5983
5988
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-resolve/
5984
5989
  */
5985
5990
  'svelte/no-navigation-without-resolve'?: Linter.RuleEntry<SvelteNoNavigationWithoutResolve>;
5991
+ /**
5992
+ * disallow `<style>` elements nested inside other elements or blocks
5993
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-nested-style-tag/
5994
+ */
5995
+ 'svelte/no-nested-style-tag'?: Linter.RuleEntry<[]>;
5986
5996
  /**
5987
5997
  * disallow use of not function in event handler
5988
5998
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/
@@ -6098,6 +6108,11 @@ interface RuleOptions {
6098
6108
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-const/
6099
6109
  */
6100
6110
  'svelte/prefer-const'?: Linter.RuleEntry<SveltePreferConst>;
6111
+ /**
6112
+ * disallow unnecessary `$derived.by()` when `$derived()` is sufficient
6113
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-derived-over-derived-by/
6114
+ */
6115
+ 'svelte/prefer-derived-over-derived-by'?: Linter.RuleEntry<[]>;
6101
6116
  /**
6102
6117
  * destructure values from object stores for better change tracking & fewer redraws
6103
6118
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/prefer-destructured-store-props/
package/dist/index.mjs CHANGED
@@ -322,7 +322,7 @@ const unCategorizedRules = {
322
322
  "vue/prefer-true-attribute-shorthand": ["error", "always"],
323
323
  "vue/prefer-use-template-ref": "error",
324
324
  "vue/require-macro-variable-name": ["error", {
325
- defineEmits: "emits",
325
+ defineEmits: "emit",
326
326
  defineProps: "props",
327
327
  defineSlots: "slots",
328
328
  useAttrs: "attrs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "6.1.5",
4
+ "version": "7.0.0-beta.2",
5
5
  "description": "An opinionated ESLint config preset of ntnyq",
6
6
  "keywords": [
7
7
  "eslint",
@@ -15,7 +15,10 @@
15
15
  "email": "ntnyq13@gmail.com"
16
16
  },
17
17
  "homepage": "https://eslint-config.ntnyq.com",
18
- "repository": "ntnyq/eslint-config",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "ntnyq/eslint-config"
21
+ },
19
22
  "bugs": {
20
23
  "url": "https://github.com/ntnyq/eslint-config/issues"
21
24
  },
@@ -33,7 +36,7 @@
33
36
  ],
34
37
  "publishConfig": {
35
38
  "access": "public",
36
- "tag": "latest"
39
+ "tag": "next"
37
40
  },
38
41
  "peerDependencies": {
39
42
  "@html-eslint/eslint-plugin": "^0.60.0",
@@ -82,16 +85,16 @@
82
85
  },
83
86
  "dependencies": {
84
87
  "@antfu/install-pkg": "^1.1.0",
85
- "@clack/prompts": "^1.4.0",
86
- "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
88
+ "@clack/prompts": "^1.5.1",
89
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
87
90
  "@eslint/js": "^10.0.1",
88
91
  "@eslint/markdown": "^8.0.2",
89
92
  "@ntnyq/utils": "^0.13.3",
90
93
  "@unocss/eslint-plugin": "^66.7.0",
91
- "@vitest/eslint-plugin": "^1.6.17",
94
+ "@vitest/eslint-plugin": "^1.6.19",
92
95
  "eslint-config-flat-gitignore": "^2.3.0",
93
96
  "eslint-flat-config-utils": "3.2.0",
94
- "eslint-import-resolver-typescript": "^4.4.4",
97
+ "eslint-import-resolver-typescript": "^4.4.5",
95
98
  "eslint-merge-processors": "^2.0.0",
96
99
  "eslint-parser-plain": "^0.1.1",
97
100
  "eslint-plugin-antfu": "^3.2.3",
@@ -100,54 +103,54 @@
100
103
  "eslint-plugin-depend": "^1.5.0",
101
104
  "eslint-plugin-github-action": "^0.2.0",
102
105
  "eslint-plugin-import-x": "^4.16.2",
103
- "eslint-plugin-jsdoc": "^62.9.0",
104
- "eslint-plugin-jsonc": "^3.1.2",
106
+ "eslint-plugin-jsdoc": "^63.0.1",
107
+ "eslint-plugin-jsonc": "^3.2.0",
105
108
  "eslint-plugin-n": "^18.0.1",
106
109
  "eslint-plugin-no-only-tests": "^3.4.0",
107
110
  "eslint-plugin-ntnyq": "^0.14.0",
108
- "eslint-plugin-oxfmt": "^0.8.0",
111
+ "eslint-plugin-oxfmt": "^0.9.0",
109
112
  "eslint-plugin-perfectionist": "^5.9.0",
110
113
  "eslint-plugin-pinia": "^0.4.2",
111
- "eslint-plugin-prettier": "^5.5.5",
114
+ "eslint-plugin-prettier": "^5.5.6",
112
115
  "eslint-plugin-regexp": "^3.1.0",
113
116
  "eslint-plugin-svgo": "^0.12.0",
114
- "eslint-plugin-toml": "^1.3.1",
117
+ "eslint-plugin-toml": "^1.4.0",
115
118
  "eslint-plugin-unicorn": "^64.0.0",
116
- "eslint-plugin-vue": "^10.9.1",
117
- "eslint-plugin-yml": "^3.3.2",
119
+ "eslint-plugin-vue": "^10.9.2",
120
+ "eslint-plugin-yml": "^3.4.0",
118
121
  "eslint-processor-vue-blocks": "^2.0.0",
119
122
  "globals": "^17.6.0",
120
123
  "jsonc-eslint-parser": "^3.1.0",
121
124
  "local-pkg": "^1.2.1",
122
125
  "toml-eslint-parser": "^1.0.3",
123
- "typescript-eslint": "^8.59.4",
124
- "vue-eslint-parser": "^10.4.0",
126
+ "typescript-eslint": "^8.60.1",
127
+ "vue-eslint-parser": "^10.4.1",
125
128
  "yaml-eslint-parser": "^2.0.0"
126
129
  },
127
130
  "devDependencies": {
128
131
  "@types/node": "^25.9.1",
129
- "@typescript-eslint/types": "^8.59.4",
130
- "@typescript-eslint/utils": "^8.59.4",
131
- "@typescript/native-preview": "^7.0.0-dev.20260523.1",
132
+ "@typescript-eslint/types": "^8.60.1",
133
+ "@typescript-eslint/utils": "^8.60.1",
134
+ "@typescript/native-preview": "^7.0.0-dev.20260604.1",
132
135
  "bumpp": "^11.1.0",
133
136
  "consola": "^3.4.2",
134
- "eslint": "^10.4.0",
137
+ "eslint": "^10.4.1",
135
138
  "eslint-typegen": "^2.3.1",
136
139
  "husky": "^9.1.7",
137
140
  "jiti": "^2.7.0",
138
141
  "nano-staged": "^1.0.2",
139
142
  "npm-run-all2": "^9.0.1",
140
- "oxfmt": "^0.51.0",
143
+ "oxfmt": "^0.53.0",
141
144
  "prettier": "^3.8.3",
142
- "tinyglobby": "^0.2.16",
143
- "tsdown": "^0.22.0",
144
- "tsx": "^4.22.3",
145
+ "tinyglobby": "^0.2.17",
146
+ "tsdown": "^0.22.2",
147
+ "tsx": "^4.22.4",
145
148
  "typescript": "^6.0.3",
146
149
  "uncase": "^0.2.0",
147
- "vitest": "^4.1.7"
150
+ "vitest": "^4.1.8"
148
151
  },
149
152
  "engines": {
150
- "node": "^20.19.0 || ^22.13.0 || >=24"
153
+ "node": "^22.13.0 || >=24"
151
154
  },
152
155
  "nano-staged": {
153
156
  "*.{js,ts,tsx,mjs,md,vue,svg,yml,yaml,toml,json}": "eslint --fix",