-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
52 lines (49 loc) · 1.44 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
env: {
browser: true,
es6: true,
"jest/globals": true,
},
extends: [
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
plugins: ["@typescript-eslint", "jest", "prettier"],
rules: {
// Specific for fixing an error
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
// It is failing for local modules
// Let's investigate later
"import/no-unresolved": "off",
"@typescript-eslint/no-use-before-define": "off",
"comma-dangle": ["error", "never"],
"import/extensions": [2, "never"],
"lines-between-class-members": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "block-like", next: "*" },
{ blankLine: "always", prev: "*", next: "block-like" },
],
// Maybe we can enable this later
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/prefer-default-export": "off",
},
};