-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
42 lines (42 loc) · 996 Bytes
/
.eslintrc.cjs
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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
extends: ["eslint:recommended", "plugin:storybook/recommended"],
env: {
browser: true,
node: true,
},
globals: {
process: "readonly",
},
rules: {
strict: ["error", "never"],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double", { avoidEscape: true }],
semi: ["error", "always"],
"no-empty": "off",
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: ["const", "let", "var"], next: "*" },
{
blankLine: "any",
prev: ["const", "let", "var"],
next: ["const", "let", "var"],
},
],
"space-in-parens": "error",
"no-multiple-empty-lines": "error",
"no-irregular-whitespace": "error",
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always",
},
],
},
};