@slashnephy/eslint-config 3.0.166 → 3.0.167
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 +2 -2
- package/src/base/javascript.js +2 -2
- package/src/base/javascript.ts +2 -2
- package/src/base/yaml.js +2 -8
- package/src/base/yaml.ts +2 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.167",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"eslint",
|
|
6
6
|
"eslintconfig"
|
|
@@ -45,7 +45,7 @@
|
|
|
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": "
|
|
48
|
+
"eslint-plugin-yml": "2.0.1",
|
|
49
49
|
"globals": "17.0.0",
|
|
50
50
|
"graphql": "16.12.0",
|
|
51
51
|
"jsonc-eslint-parser": "2.4.2",
|
package/src/base/javascript.js
CHANGED
|
@@ -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/javascript.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
},
|