forked from foxglove/foxglove-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
51 lines (50 loc) · 1003 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
51 lines (50 loc) · 1003 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import foxglove from "@foxglove/eslint-plugin";
import { defineConfig } from "eslint/config";
import globals from "globals";
export default defineConfig(
{
ignores: [
".cargo",
"**/.venv",
"**/dist",
"cpp/build-*",
"cpp/build",
"python/foxglove-sdk/**/_build",
"target",
],
},
...foxglove.configs.base,
{
files: ["**/*.js"],
languageOptions: {
globals: {
...globals.node,
},
},
},
...foxglove.configs.react,
...foxglove.configs.typescript.map((config) => ({
...config,
files: ["**/*.@(ts|tsx)"],
})),
{
files: ["**/*.@(ts|tsx)"],
languageOptions: {
parserOptions: {
project: true,
},
},
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
vars: "all",
args: "after-used",
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
caughtErrors: "none",
},
],
},
},
);