Skip to content

Commit

Permalink
lint yaml & yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Stassi committed Nov 3, 2024
1 parent c11a430 commit 31a6702
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ module.exports = {
'no-unsanitized/property': 'error',
},
},
{
extends: ['plugin:yml/prettier', 'plugin:yml/standard'],
files: ['*.yaml', '*.yml'],
parser: 'yaml-eslint-parser',
plugins: ['yml'],
rules: {
'yml/quotes': ['error', { prefer: 'single' }],
'yml/sort-keys': 'error',
},
},
],
parser: '@babel/eslint-parser',
parserOptions: {
Expand Down

0 comments on commit 31a6702

Please sign in to comment.