-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
30 lines (30 loc) · 865 Bytes
/
Copy path.eslintrc.cjs
File metadata and controls
30 lines (30 loc) · 865 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
/* @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "unused-imports", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
],
parserOptions: {
project: ["./packages/*/tsconfig.json"],
},
ignorePatterns: ["dist", "node_modules"],
rules: {
"unused-imports/no-unused-imports": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"import/order": ["warn", { "newlines-between": "always" }],
},
settings: {
"import/resolver": {
typescript: {
project: ["packages/*/tsconfig.json"],
},
},
},
};