generated from foxglove/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 8
/
eslint.config.cjs
48 lines (45 loc) · 1.06 KB
/
eslint.config.cjs
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* eslint-disable @typescript-eslint/no-require-imports */
const foxglove = require("@foxglove/eslint-plugin");
const storybook = require("eslint-plugin-storybook");
const globals = require("globals");
const tseslint = require("typescript-eslint");
module.exports = tseslint.config(
{
ignores: ["**/dist", "!.storybook"],
},
{
languageOptions: {
parserOptions: {
project: "tsconfig.eslint.json",
},
},
},
...foxglove.configs.base,
...foxglove.configs.jest,
...foxglove.configs.typescript,
...foxglove.configs.react,
...storybook.configs["flat/recommended"],
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
"react-hooks/exhaustive-deps": "error",
},
},
{
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@foxglove/prefer-hash-private": "off",
},
},
{
files: ["**/*.stories.tsx", ".storybook/**/*"],
rules: {
"filenames/match-exported": "off",
},
},
);