1 | 'use strict'
|
2 |
|
3 | module.exports = {
|
4 | extends: 'standard',
|
5 | parserOptions: {
|
6 | sourceType: 'script'
|
7 | },
|
8 | globals: {
|
9 | self: true,
|
10 | mocha: true
|
11 | },
|
12 | plugins: [
|
13 | 'no-only-tests'
|
14 | ],
|
15 | rules: {
|
16 | strict: [2, 'safe'],
|
17 | curly: 'error',
|
18 | 'block-scoped-var': 2,
|
19 | complexity: 1,
|
20 | 'default-case': 2,
|
21 | 'dot-notation': 1,
|
22 | 'guard-for-in': 1,
|
23 | 'linebreak-style': [1, 'unix'],
|
24 | 'no-alert': 2,
|
25 | 'no-case-declarations': 2,
|
26 | 'no-console': 2,
|
27 | 'no-constant-condition': 2,
|
28 | 'no-continue': 1,
|
29 | 'no-div-regex': 2,
|
30 | 'no-empty': 1,
|
31 | 'no-empty-pattern': 2,
|
32 | 'no-extra-semi': 2,
|
33 | 'no-implicit-coercion': 2,
|
34 | 'no-labels': 2,
|
35 | 'no-loop-func': 2,
|
36 | 'no-nested-ternary': 1,
|
37 | 'no-only-tests/no-only-tests': 2,
|
38 | 'no-script-url': 2,
|
39 | 'no-warning-comments': 1,
|
40 | 'quote-props': [2, 'as-needed'],
|
41 | 'require-yield': 2,
|
42 | 'max-nested-callbacks': [2, 4],
|
43 | 'max-depth': [2, 4],
|
44 | 'valid-jsdoc': [2, {
|
45 | requireReturn: false,
|
46 | requireParamDescription: false,
|
47 | requireReturnDescription: false
|
48 | }],
|
49 | 'require-await': 2
|
50 | }
|
51 | }
|