This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
66 lines (65 loc) · 1.54 KB
/
eslint.config.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const [OFF, , ERROR] = [0, 1, 2];
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
project: "tsconfig.eslint.json",
},
extends: [
"airbnb-typescript/base",
"prettier",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
],
plugins: ["jest", "@typescript-eslint"],
env: {
browser: true,
node: true,
"jest/globals": true,
},
rules: {
"@typescript-eslint/camelcase": OFF,
"consistent-return": OFF,
"default-case": OFF,
"import/order": [
ERROR,
{
groups: [["external", "builtin"], "internal", "parent", ["index", "sibling"], "object"],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
"import/prefer-default-export": OFF,
"no-nested-ternary": OFF,
"no-param-reassign": OFF,
"no-plusplus": OFF,
"no-restricted-globals": OFF,
"no-restricted-syntax": OFF,
"no-underscore-dangle": OFF,
"prettier/prettier": [
ERROR,
{
printWidth: 100,
semi: true,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
},
{ usePrettierrc: false },
],
"spaced-comment": [ERROR, "always", { markers: ["/"] }],
"sort-imports": [
ERROR,
{
ignoreCase: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
},
],
"symbol-description": OFF,
},
};