forked from GoogleCloudPlatform/nodejs-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.yml
More file actions
33 lines (33 loc) · 678 Bytes
/
.eslintrc.yml
File metadata and controls
33 lines (33 loc) · 678 Bytes
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
---
extends:
- 'eslint:recommended'
- 'plugin:node/recommended'
- 'prettier'
env:
mocha: true
plugins:
- node
- prettier
- promise
rules:
require-atomic-updates: warn
prettier/prettier: error
block-scoped-var: error
eqeqeq: error
no-warning-comments: warn
no-console: off
node/no-missing-require: off
node/no-unpublished-require: off
prefer-const: error
no-var: error
prefer-arrow-callback: error
no-throw-literal: error
require-await: error
promise/prefer-await-to-then: error
promise/no-nesting: error
prefer-destructuring: error
prefer-template: error
func-style:
- error
- expression
- allowArrowFunctions: true