1 | {
|
2 | "extends": [
|
3 | "eslint:recommended",
|
4 | "prettier"
|
5 | ],
|
6 | "plugins": [
|
7 | "prettier"
|
8 | ],
|
9 | "rules": {
|
10 | "prettier/prettier": "error",
|
11 | "block-scoped-var": "error",
|
12 | "eqeqeq": "error",
|
13 | "no-var": "error",
|
14 | "prefer-const": "error",
|
15 | "eol-last": "error",
|
16 | "prefer-arrow-callback": "error",
|
17 | "no-trailing-spaces": "error",
|
18 | "quotes": ["warn", "single", { "avoidEscape": true }],
|
19 | "no-restricted-properties": [
|
20 | "error",
|
21 | {
|
22 | "object": "describe",
|
23 | "property": "only"
|
24 | },
|
25 | {
|
26 | "object": "it",
|
27 | "property": "only"
|
28 | }
|
29 | ]
|
30 | },
|
31 | "overrides": [
|
32 | {
|
33 | "files": ["**/*.ts", "**/*.tsx"],
|
34 | "parser": "@typescript-eslint/parser",
|
35 | "extends": [
|
36 | "plugin:@typescript-eslint/recommended"
|
37 | ],
|
38 | "rules": {
|
39 | "@typescript-eslint/no-non-null-assertion": "off",
|
40 | "@typescript-eslint/no-use-before-define": "off",
|
41 | "@typescript-eslint/no-warning-comments": "off",
|
42 | "@typescript-eslint/no-empty-function": "off",
|
43 | "@typescript-eslint/no-var-requires": "off",
|
44 | "@typescript-eslint/explicit-function-return-type": "off",
|
45 | "@typescript-eslint/explicit-module-boundary-types": "off",
|
46 | "@typescript-eslint/ban-types": "off",
|
47 | "@typescript-eslint/camelcase": "off",
|
48 | "node/no-empty-function": "off",
|
49 | "node/no-missing-import": "off",
|
50 | "node/no-unsupported-features/es-syntax": "off",
|
51 | "node/no-missing-require": "off",
|
52 | "node/shebang": "off",
|
53 | "no-dupe-class-members": "off",
|
54 | "require-atomic-updates": "off"
|
55 | },
|
56 | "parserOptions": {
|
57 | "ecmaVersion": 2018,
|
58 | "sourceType": "module"
|
59 | }
|
60 | }
|
61 | ]
|
62 | }
|