File tree 3 files changed +70
-2
lines changed
3 files changed +70
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export default tseslint.config(
88
88
rules : { "@typescript-eslint/no-unsafe-assignment" : "off" } ,
89
89
} ,
90
90
{
91
- extends : [ yml . configs [ "flat/recommended " ] , yml . configs [ "flat/prettier" ] ] ,
91
+ extends : [ yml . configs [ "flat/standard " ] , yml . configs [ "flat/prettier" ] ] ,
92
92
files : [ "**/*.{yml,yaml}" ] ,
93
93
rules : {
94
94
"yml/file-extension" : [ "error" , { extension : "yml" } ] ,
Original file line number Diff line number Diff line change
1
+ import { testBlock } from "bingo-stratum-testers" ;
2
+ import { describe , expect , test } from "vitest" ;
3
+
4
+ import { blockESLintYML } from "./blockESLintYML.js" ;
5
+ import { optionsBase } from "./options.fakes.js" ;
6
+
7
+ describe ( "blockESLintYML" , ( ) => {
8
+ test ( "production" , ( ) => {
9
+ const creation = testBlock ( blockESLintYML , {
10
+ options : optionsBase ,
11
+ } ) ;
12
+
13
+ expect ( creation ) . toMatchInlineSnapshot ( `
14
+ {
15
+ "addons": [
16
+ {
17
+ "addons": {
18
+ "extensions": [
19
+ {
20
+ "extends": [
21
+ "yml.configs["flat/standard"]",
22
+ "yml.configs["flat/prettier"]",
23
+ ],
24
+ "files": [
25
+ "**/*.{yml,yaml}",
26
+ ],
27
+ "rules": {
28
+ "yml/file-extension": [
29
+ "error",
30
+ {
31
+ "extension": "yml",
32
+ },
33
+ ],
34
+ "yml/sort-keys": [
35
+ "error",
36
+ {
37
+ "order": {
38
+ "type": "asc",
39
+ },
40
+ "pathPattern": "^.*$",
41
+ },
42
+ ],
43
+ "yml/sort-sequence-values": [
44
+ "error",
45
+ {
46
+ "order": {
47
+ "type": "asc",
48
+ },
49
+ "pathPattern": "^.*$",
50
+ },
51
+ ],
52
+ },
53
+ },
54
+ ],
55
+ "imports": [
56
+ {
57
+ "source": "eslint-plugin-yml",
58
+ "specifier": "yml",
59
+ },
60
+ ],
61
+ },
62
+ "block": [Function],
63
+ },
64
+ ],
65
+ }
66
+ ` ) ;
67
+ } ) ;
68
+ } ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export const blockESLintYML = base.createBlock({
12
12
extensions : [
13
13
{
14
14
extends : [
15
- 'yml.configs["flat/recommended "]' ,
15
+ 'yml.configs["flat/standard "]' ,
16
16
'yml.configs["flat/prettier"]' ,
17
17
] ,
18
18
files : [ "**/*.{yml,yaml}" ] ,
You can’t perform that action at this time.
0 commit comments