Skip to content

Commit 780ed9e

Browse files
chore: enable eslint for css files (#348)
* chore: enable eslint for css files * chore: update eslint.config.js Co-authored-by: 루밀LuMir <[email protected]> * fix: formatting --------- Co-authored-by: 루밀LuMir <[email protected]>
1 parent 771623a commit 780ed9e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import eslintPlugin from "eslint-plugin-eslint-plugin";
1212
import globals from "globals";
1313
import json from "@eslint/json";
1414
import { defineConfig, globalIgnores } from "eslint/config";
15+
import css from "./src/index.js";
1516

1617
//-----------------------------------------------------------------------------
1718
// Helpers
@@ -104,4 +105,12 @@ export default defineConfig([
104105
language: "json/json",
105106
extends: ["json/recommended"],
106107
},
108+
// This CSS configuration is mainly used to validate the `test.css` file for local testing.
109+
{
110+
name: "css/css",
111+
plugins: { css },
112+
files: ["**/*.css"],
113+
language: "css/css",
114+
extends: ["css/recommended"],
115+
},
107116
]);

0 commit comments

Comments
 (0)