1 | module.exports = {
|
2 | extends: [
|
3 | "prettier",
|
4 | "plugin:promise/recommended",
|
5 | "plugin:lodash/recommended",
|
6 | ],
|
7 | parserOptions: {
|
8 | ecmaVersion: 2018,
|
9 | ecmaFeatures: {
|
10 | experimentalObjectRestSpread: true,
|
11 | },
|
12 | },
|
13 | env: {
|
14 | node: true,
|
15 | browser: true,
|
16 | es6: true,
|
17 | },
|
18 | plugins: ["prettier", "promise", "lodash"],
|
19 | rules: {
|
20 | "prettier/prettier": [
|
21 | "error",
|
22 | {
|
23 | printWidth: 80,
|
24 | trailingComma: "es5",
|
25 | },
|
26 | ],
|
27 |
|
28 | "dot-notation": "off",
|
29 |
|
30 | "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
|
31 |
|
32 | "promise/avoid-new": "off",
|
33 |
|
34 | "promise/prefer-await-to-then": "warn",
|
35 |
|
36 | "lodash/import-scope": ["error", "member"],
|
37 |
|
38 | "lodash/prefer-lodash-method": "off",
|
39 | },
|
40 | };
|