@kazupon/eslint-config 0.13.2 → 0.14.0

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.
@@ -1,6 +1,7 @@
1
1
  import type { Linter, ESLint } from 'eslint';
2
2
  export interface OverridesOptions<Rules = Linter.Config['rules']> {
3
3
  files?: Linter.Config['files'];
4
+ ignores?: Linter.Config['ignores'];
4
5
  rules?: Rules;
5
6
  parserOptions?: ESLint.Environment['parserOptions'];
6
7
  settings?: Linter.Config['settings'];
@@ -1,6 +1,7 @@
1
1
  import type { Linter, ESLint } from 'eslint';
2
2
  export interface OverridesOptions<Rules = Linter.Config['rules']> {
3
3
  files?: Linter.Config['files'];
4
+ ignores?: Linter.Config['ignores'];
4
5
  rules?: Rules;
5
6
  parserOptions?: ESLint.Environment['parserOptions'];
6
7
  settings?: Linter.Config['settings'];
package/dist/utils.d.cts CHANGED
@@ -29,3 +29,9 @@ export declare function loadPlugin<T = unknown>(name: string): Promise<T>;
29
29
  * @returns {Promise<typeof import('typescript-eslint')['parser']>} TypeScript parser
30
30
  */
31
31
  export declare function getTypeScriptParser(): Promise<(typeof import('typescript-eslint'))['parser']>;
32
+ /**
33
+ * get glob source files
34
+ * @param {boolean} useTypeScript use TypeScript, default `false`
35
+ * @returns {string[]} files
36
+ */
37
+ export declare function getGlobSourceFiles(useTypeScript?: boolean): string[];
package/dist/utils.d.ts CHANGED
@@ -29,3 +29,9 @@ export declare function loadPlugin<T = unknown>(name: string): Promise<T>;
29
29
  * @returns {Promise<typeof import('typescript-eslint')['parser']>} TypeScript parser
30
30
  */
31
31
  export declare function getTypeScriptParser(): Promise<(typeof import('typescript-eslint'))['parser']>;
32
+ /**
33
+ * get glob source files
34
+ * @param {boolean} useTypeScript use TypeScript, default `false`
35
+ * @returns {string[]} files
36
+ */
37
+ export declare function getGlobSourceFiles(useTypeScript?: boolean): string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kazupon/eslint-config",
3
3
  "description": "ESLint config for @kazupon",
4
- "version": "0.13.2",
4
+ "version": "0.14.0",
5
5
  "author": {
6
6
  "email": "kawakazu80@gmail.com",
7
7
  "name": "kazuya kawaguchi"
@@ -113,11 +113,11 @@
113
113
  "devDependencies": {
114
114
  "@kazupon/prettier-config": "^0.1.1",
115
115
  "@types/eslint": "^9.6.0",
116
- "@types/node": "^20.14.9",
116
+ "@types/node": "^22.5.0",
117
117
  "bumpp": "^9.4.1",
118
118
  "eslint": "^9.9.0",
119
119
  "eslint-config-prettier": "^9.1.0",
120
- "eslint-plugin-jsdoc": "^48.5.2",
120
+ "eslint-plugin-jsdoc": "^50.0.0",
121
121
  "eslint-plugin-jsonc": "^2.16.0",
122
122
  "eslint-plugin-promise": "^7.0.0",
123
123
  "eslint-plugin-react": "^7.35.0",
@@ -126,17 +126,17 @@
126
126
  "eslint-plugin-regexp": "^2.6.0",
127
127
  "eslint-plugin-svelte": "^2.43.0",
128
128
  "eslint-plugin-toml": "^0.11.0",
129
- "eslint-plugin-unicorn": "^54.0.0",
129
+ "eslint-plugin-unicorn": "^55.0.0",
130
130
  "eslint-plugin-vue": "^9.27.0",
131
131
  "eslint-plugin-yml": "^1.14.0",
132
- "eslint-typegen": "^0.3.0",
132
+ "eslint-typegen": "^0.3.1",
133
133
  "gh-changelogen": "^0.2.8",
134
+ "jiti": "^1.21.6",
134
135
  "lint-staged": "^15.2.7",
135
136
  "npm-run-all2": "^6.2.2",
136
137
  "prettier": "^3.3.2",
137
138
  "svelte": "^4.2.18",
138
- "tsdown": "^0.2.3",
139
- "tsx": "^4.16.2",
139
+ "tsdown": "^0.2.9",
140
140
  "typescript": "^5.5.3",
141
141
  "typescript-eslint": "^8.1.0",
142
142
  "vitest": "^2.0.0"
@@ -145,11 +145,11 @@
145
145
  "lint-staged": {
146
146
  "*.ts?(x)": [
147
147
  "prettier --parser=typescript --write",
148
- "eslint --fix"
148
+ "eslint --flag unstable_ts_config --fix"
149
149
  ],
150
150
  "*.{js,mjs,cjs}": [
151
151
  "prettier --write",
152
- "eslint --fix"
152
+ "eslint --flag unstable_ts_config --fix"
153
153
  ],
154
154
  "*.{json,jsonc,json5,md,yml,yaml}": [
155
155
  "prettier --write"
@@ -161,14 +161,14 @@
161
161
  "changelog": "gh-changelogen --repo=kazupon/eslint-config",
162
162
  "dev": "pnpx @eslint/config-inspector --config eslint.config.ts",
163
163
  "fix": "run-p \"fix:* {@}\" --",
164
- "fix:eslint": "eslint . --fix",
164
+ "fix:eslint": "eslint --flag unstable_ts_config . --fix",
165
165
  "fix:prettier": "prettier . --write",
166
166
  "lint": "run-p \"lint:* {@}\" --",
167
- "lint:eslint": "eslint .",
167
+ "lint:eslint": "eslint --flag unstable_ts_config .",
168
168
  "lint:prettier": "prettier . --check",
169
169
  "release": "bumpp --commit \"release: v%s\" --all --push --tag",
170
170
  "test": "vitest",
171
171
  "typecheck": "tsc -p .",
172
- "typegen": "pnpx tsx scripts/typegen.ts"
172
+ "typegen": "pnpx jiti scripts/typegen.ts"
173
173
  }
174
174
  }