-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.js
51 lines (50 loc) · 1.16 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
// should be the same as https://github.com/nylas/dashboard/blob/main/.eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jasmine: true,
},
globals: {
cy: true,
Cypress: true,
expect: true,
assert: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2019,
sourceType: "module",
},
plugins: ["svelte3", "@typescript-eslint", "cypress"],
extends: [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
overrides: [
{
files: ["**/*.svelte"],
processor: "svelte3/svelte3",
},
],
settings: {
"svelte3/ignore-styles": (_) => true,
"svelte3/ignore-warnings": (_) => true,
},
rules: {
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
"no-console": ["error", { allow: ["warn", "error", "time"] }],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-empty-function": 0,
"prefer-const": [
"error",
{
destructuring: "any",
ignoreReadBeforeAssign: false,
},
],
},
};