-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.cjs
45 lines (45 loc) · 935 Bytes
/
.eslintrc.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
module.exports = {
env: {
node: true,
},
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "jest", "jsdoc", "prettier", "@stylistic/js"],
extends: [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
],
ignorePatterns: ["build/*"],
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
},
rules: {
"prettier/prettier": "warn",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"jsdoc/require-asterisk-prefix": ["error", "never"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
},
overrides: [
{
files: ["test/**/*.ts", "*.test.ts"],
env: {
"jest/globals": true,
},
},
],
settings: {
jest: {
version: 29,
},
},
};