Skip to content

Commit c6a4bc3

Browse files
feat: switch YAML extension preference from .yml to .yaml
1 parent d7c0947 commit c6a4bc3

File tree

10 files changed

+3
-8
lines changed

10 files changed

+3
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default defineConfig(
105105
extends: [yml.configs["flat/standard"], yml.configs["flat/prettier"]],
106106
files: ["**/*.{yml,yaml}"],
107107
rules: {
108-
"yml/file-extension": ["error", { extension: "yml" }],
108+
"yml/file-extension": "error",
109109
"yml/sort-keys": [
110110
"error",
111111
{ order: { type: "asc" }, pathPattern: "^.*$" },

src/blocks/blockESLintYML.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ describe("blockESLintYML", () => {
2525
"**/*.{yml,yaml}",
2626
],
2727
"rules": {
28-
"yml/file-extension": [
29-
"error",
30-
{
31-
"extension": "yml",
32-
},
33-
],
28+
"yml/file-extension": "error",
3429
"yml/sort-keys": [
3530
"error",
3631
{

src/blocks/blockESLintYML.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const blockESLintYML = base.createBlock({
1717
],
1818
files: ["**/*.{yml,yaml}"],
1919
rules: {
20-
"yml/file-extension": ["error", { extension: "yml" }],
20+
"yml/file-extension": "error",
2121
"yml/sort-keys": [
2222
"error",
2323
{

0 commit comments

Comments
 (0)