forked from eslint-community/eslint-plugin-promise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
31 lines (31 loc) · 835 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
29
30
31
{
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"plugins": ["eslint-plugin", "node", "prettier"],
"extends": [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:node/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-var": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"strict": ["error", "global"],
"eslint-plugin/require-meta-docs-description": [
"error",
{ "pattern": "^(Enforce|Require|Disallow|Prefer).+\\.$" }
],
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/test-case-shorthand-strings": "error",
"node/no-unsupported-features": ["error", { "version": 6 }],
"prettier/prettier": "error"
}
}