-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (30 loc) · 904 Bytes
/
eslint.config.js
File metadata and controls
32 lines (30 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from "eslint-plugin-storybook";
import js from "@eslint/js";
import css from "@eslint/css";
import eslintConfigPrettierRecommended from "eslint-config-prettier";
import vitest from "@vitest/eslint-plugin";
export default [
{ ignores: ["storybook-static/**"] },
{
...js.configs.recommended,
...eslintConfigPrettierRecommended,
files: ["src/**/*.js"],
rules: {},
},
{
files: ["src/**/*.spec.js"],
plugins: { vitest },
rules: { ...vitest.configs.recommended.rules },
},
{
files: ["core/**/*.css", "src/**/*.css"],
plugins: { css },
language: "css/css",
rules: {
...css.configs.recommended.rules,
"css/use-baseline": ["warn", { available: "widely" }],
},
},
...storybook.configs["flat/recommended"],
];