@slashnephy/eslint-config 3.0.116 → 3.0.118

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "3.0.116",
3
+ "version": "3.0.118",
4
4
  "keywords": [
5
5
  "eslint",
6
6
  "eslintconfig"
@@ -1,7 +1,7 @@
1
1
  import safeTypeScriptPlugin from '@susisu/eslint-plugin-safe-typescript';
2
+ import { defineConfig } from 'eslint/config';
2
3
  import { importX } from 'eslint-plugin-import-x';
3
4
  import tsdocPlugin from 'eslint-plugin-tsdoc';
4
- import { defineConfig } from 'eslint/config';
5
5
  import tseslint from 'typescript-eslint';
6
6
  export const typeScript = defineConfig({
7
7
  files: ['**/*.cts'],
@@ -24,7 +24,11 @@ export const typeScript = defineConfig({
24
24
  ecmaVersion: 'latest',
25
25
  parser: tseslint.parser,
26
26
  parserOptions: {
27
- projectService: true,
27
+ projectService: {
28
+ allowDefaultProject: [
29
+ '*.config.{ts,cts,mts}',
30
+ ],
31
+ },
28
32
  // tsconfigRootDir は利用側で定義する必要がある
29
33
  // tsconfigRootDir: import.meta.dirname,
30
34
  },
@@ -1,7 +1,7 @@
1
1
  import safeTypeScriptPlugin from '@susisu/eslint-plugin-safe-typescript'
2
+ import { defineConfig } from 'eslint/config'
2
3
  import { importX } from 'eslint-plugin-import-x'
3
4
  import tsdocPlugin from 'eslint-plugin-tsdoc'
4
- import { defineConfig } from 'eslint/config'
5
5
  import tseslint from 'typescript-eslint'
6
6
 
7
7
  export const typeScript = defineConfig(
@@ -29,7 +29,11 @@ export const typeScript = defineConfig(
29
29
  ecmaVersion: 'latest',
30
30
  parser: tseslint.parser,
31
31
  parserOptions: {
32
- projectService: true,
32
+ projectService: {
33
+ allowDefaultProject: [
34
+ '*.config.{ts,cts,mts}',
35
+ ],
36
+ },
33
37
  // tsconfigRootDir は利用側で定義する必要がある
34
38
  // tsconfigRootDir: import.meta.dirname,
35
39
  },