-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
51 lines (51 loc) · 1.3 KB
/
Copy path.eslintrc.js
File metadata and controls
51 lines (51 loc) · 1.3 KB
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
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
extends: [
"plugin:@typescript-eslint/recommended",
"standard-with-typescript",
"prettier",
"plugin:vitest-globals/recommended",
],
plugins: ["@typescript-eslint", "prettier"],
parser: "@typescript-eslint/parser",
overrides: [
{
files: ["**/tests/*.{j,t}s?(x)", "**/*.spec.{j,t}s?(x)"],
env: {
"vitest-globals/env": true,
},
},
{
files: ["*.ts"],
rules: {
"prefer-const": "off",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
rules: {
"prettier/prettier": "error",
"standard/computed-property-even-spacing": "off",
"lines-between-class-members": "off",
"no-template-curly-in-string": "off",
camelcase: "off",
"import/no-duplicates": "off",
"no-unusued-vars": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", ignoreRestSiblings: true }],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: ["**/__tests__/**/*.{ts,js}", "**/*.test.{ts,js}", "**/test.{ts,js}"],
},
],
},
};