-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (32 loc) · 796 Bytes
/
eslint.config.mjs
File metadata and controls
34 lines (32 loc) · 796 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
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{
ignores: ["node_modules/**", "dist/**", "**/*.d.ts"],
},
{
files: ["**/*.{js,ts}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.node,
parser: tseslint.parser,
},
plugins: {
"@typescript-eslint": tseslint.plugin,
},
rules: {
...js.configs.recommended.rules,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
},
},
{
files: ["**/*.test.{js,ts}", "**/tests/**/*.{js,ts}"],
languageOptions: {
globals: globals.jest,
},
},
eslintConfigPrettier,
];