@slashnephy/eslint-config 3.0.166 → 3.0.168

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.166",
3
+ "version": "3.0.168",
4
4
  "keywords": [
5
5
  "eslint",
6
6
  "eslintconfig"
@@ -45,13 +45,13 @@
45
45
  "eslint-plugin-unused-imports": "4.3.0",
46
46
  "eslint-plugin-userscripts": "0.5.6",
47
47
  "eslint-plugin-xss": "0.1.12",
48
- "eslint-plugin-yml": "1.19.1",
48
+ "eslint-plugin-yml": "2.0.2",
49
49
  "globals": "17.0.0",
50
50
  "graphql": "16.12.0",
51
51
  "jsonc-eslint-parser": "2.4.2",
52
52
  "typescript": "5.9.3",
53
53
  "typescript-eslint": "8.53.0",
54
- "yaml-eslint-parser": "1.3.2"
54
+ "yaml-eslint-parser": "2.0.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@eslint/config-inspector": "1.4.2",
@@ -1,8 +1,8 @@
1
- import eslintCommentsConfig from '@eslint-community/eslint-plugin-eslint-comments/configs';
2
1
  import eslint from '@eslint/js';
2
+ import eslintCommentsConfig from '@eslint-community/eslint-plugin-eslint-comments/configs';
3
3
  import stylisticPlugin from '@stylistic/eslint-plugin';
4
- import { importX } from 'eslint-plugin-import-x';
5
4
  import { defineConfig } from 'eslint/config';
5
+ import { importX } from 'eslint-plugin-import-x';
6
6
  // @ts-expect-error 型定義ファイルがない
7
7
  import promisePlugin from 'eslint-plugin-promise';
8
8
  import unusedImportsPlugin from 'eslint-plugin-unused-imports';
@@ -1,8 +1,8 @@
1
- import eslintCommentsConfig from '@eslint-community/eslint-plugin-eslint-comments/configs'
2
1
  import eslint from '@eslint/js'
2
+ import eslintCommentsConfig from '@eslint-community/eslint-plugin-eslint-comments/configs'
3
3
  import stylisticPlugin from '@stylistic/eslint-plugin'
4
- import { importX } from 'eslint-plugin-import-x'
5
4
  import { defineConfig } from 'eslint/config'
5
+ import { importX } from 'eslint-plugin-import-x'
6
6
  // @ts-expect-error 型定義ファイルがない
7
7
  import promisePlugin from 'eslint-plugin-promise'
8
8
  import unusedImportsPlugin from 'eslint-plugin-unused-imports'
package/src/base/yaml.js CHANGED
@@ -1,21 +1,15 @@
1
1
  import { defineConfig } from 'eslint/config';
2
- import ymlPlugin from 'eslint-plugin-yml';
2
+ import { configs as ymlConfig } from 'eslint-plugin-yml';
3
3
  export const yaml = defineConfig({
4
4
  name: 'eslint-plugin-yml',
5
5
  files: ['**/*.{yml,yaml}'],
6
6
  extends: [
7
- ymlPlugin.configs['flat/standard'],
7
+ ymlConfig.recommended,
8
8
  ],
9
- rules: {
10
- 'yml/quotes': ['error', { prefer: 'double' }],
11
- },
12
9
  }, {
13
10
  name: 'eslint-plugin-yml (GitHub Workflow)',
14
11
  files: ['.github/workflows/*.{yml,yaml}'],
15
12
  rules: {
16
- // ダブルクォートが使えない場合があるのでシングルに統一
17
- // https://github.com/actions/runner/issues/866
18
- 'yml/quotes': ['error', { prefer: 'single' }],
19
13
  // workflow_dispatch: のような空のマップを許可する
20
14
  'yml/no-empty-mapping-value': 'off',
21
15
  },
package/src/base/yaml.ts CHANGED
@@ -1,24 +1,18 @@
1
1
  import { defineConfig } from 'eslint/config'
2
- import ymlPlugin from 'eslint-plugin-yml'
2
+ import { configs as ymlConfig } from 'eslint-plugin-yml'
3
3
 
4
4
  export const yaml = defineConfig(
5
5
  {
6
6
  name: 'eslint-plugin-yml',
7
7
  files: ['**/*.{yml,yaml}'],
8
8
  extends: [
9
- ymlPlugin.configs['flat/standard'],
9
+ ymlConfig.recommended,
10
10
  ],
11
- rules: {
12
- 'yml/quotes': ['error', { prefer: 'double' }],
13
- },
14
11
  },
15
12
  {
16
13
  name: 'eslint-plugin-yml (GitHub Workflow)',
17
14
  files: ['.github/workflows/*.{yml,yaml}'],
18
15
  rules: {
19
- // ダブルクォートが使えない場合があるのでシングルに統一
20
- // https://github.com/actions/runner/issues/866
21
- 'yml/quotes': ['error', { prefer: 'single' }],
22
16
  // workflow_dispatch: のような空のマップを許可する
23
17
  'yml/no-empty-mapping-value': 'off',
24
18
  },