Skip to content

Commit 0df9b7d

Browse files
committed
Added eslint-plugin-yml as dev dependency
1 parent 86154ca commit 0df9b7d

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import js from '@eslint/js'
22
import globals from 'globals'
33
import json from '@eslint/json'
44
import markdown from '@eslint/markdown'
5+
import eslintPluginYml from 'eslint-plugin-yml'
56

67
export default [
78
{
@@ -32,5 +33,6 @@ export default [
3233
'markdown/fenced-code-language': 'off', // allow code blocks w/ no language specified
3334
'markdown/no-missing-label-refs': 'off' // allow missing label references
3435
}
35-
}
36+
},
37+
{ files: ['**/*.yaml, **/*.yml'], ...eslintPluginYml.configs['flat/standard'][1] }
3638
]

package-lock.json

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@eslint/json": "^0.6.0",
2121
"@eslint/markdown": "^6.2.1",
2222
"eslint": "^9.14.0",
23+
"eslint-plugin-yml": "^1.15.0",
2324
"husky": "^9.1.6"
2425
}
2526
}

0 commit comments

Comments
 (0)