-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
28 lines (28 loc) · 997 Bytes
/
.eslintrc.json
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
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"plugins": ["prettier", "import", "promise"],
"ignorePatterns": ["node_modules/", "dist/"],
"parserOptions": { "ecmaVersion": 2020 },
"extends": [
// extends mean shareable config from devDependencies that community have created or recommended
// default
"eslint:recommended", //@eslint/js
"plugin:promise/recommended", //eslint-plugin-promise
"plugin:n/recommended", //eslint-plugin-n
"plugin:import/recommended", //eslint-plugin-import
"prettier" //eslint-CONFIG-prettier === this config only turns **rules** key below off (turn off eslint rules that conflict with prettier), turn on prettier/prettier rules
],
"rules": {
// extends mean shareable config from devDependencies that community have created or recommended
// default
"no-unused-vars": "warn",
// prettier
"prettier/prettier": [
"warn",
{
"usePrettierrc": true
}
]
}
}