-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
39 lines (38 loc) · 909 Bytes
/
.eslintrc.js
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
module.exports = {
plugins: ["@typescript-eslint", "prettier", "import", "jest"],
extends: [
"airbnb-typescript/base",
"plugin:jest/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
extraFileExtensions: [".cjs"],
warnOnUnsupportedTypeScriptVersion: false,
project: "tsconfig.eslint.json",
},
env: {
jest: true,
browser: true,
},
rules: {
"jest/expect-expect": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
},
],
},
overrides: [
{
files: ["**/*.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": "off",
},
},
],
};