/
.eslintrc.json
90 lines (88 loc) · 2.55 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "script"
},
"env": {
"node": true,
"es6": true
},
"plugins": [
"jsdoc",
"n",
"unicorn"
],
"extends": [
"eslint:all",
"plugin:jsdoc/recommended",
"plugin:n/recommended",
"plugin:unicorn/all"
],
"ignorePatterns": [
"test/*/**",
"webworker/markdownlint-cli2-webworker.js",
"webworker/setImmediate.js"
],
"reportUnusedDisableDirectives": true,
"rules": {
"capitalized-comments": "off",
"complexity": "off",
"guard-for-in": "off",
"id-length": "off",
"max-lines-per-function": "off",
"max-lines": "off",
"max-params": "off",
"max-statements": "off",
"multiline-comment-style": ["error", "separate-lines"],
"no-console": "off",
"no-magic-numbers": "off",
"no-plusplus": "off",
"no-ternary": "off",
"no-undef-init": "off",
"no-undefined": "off",
"one-var": "off",
"require-atomic-updates": "off",
"sort-keys": "off",
"n/callback-return": "error",
"n/exports-style": "error",
"n/file-extension-in-import": "error",
"n/global-require": "off",
"n/handle-callback-err": "error",
"n/no-callback-literal": "error",
"n/no-deprecated-api": "error",
"n/no-exports-assign": "error",
"n/no-extraneous-import": "error",
"n/no-extraneous-require": "error",
"n/no-missing-import": "error",
"n/no-missing-require": "error",
"n/no-mixed-requires": "error",
"n/no-new-require": "error",
"n/no-path-concat": "error",
"n/no-process-env": "error",
"n/no-process-exit": "error",
"n/no-restricted-import": "error",
"n/no-restricted-require": "error",
"n/no-sync": "error",
"n/no-unpublished-bin": "error",
"n/no-unpublished-import": "error",
"n/no-unpublished-require": "error",
"n/no-unsupported-features/es-builtins": "error",
"n/no-unsupported-features/es-syntax": "error",
"n/no-unsupported-features/node-builtins": "error",
"n/prefer-global/buffer": "error",
"n/prefer-global/console": "error",
"n/prefer-global/process": "error",
"n/prefer-global/text-decoder": "error",
"n/prefer-global/text-encoder": "error",
"n/prefer-global/url-search-params": "error",
"n/prefer-global/url": "error",
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",
"n/process-exit-as-throw": "error",
"n/shebang": "error",
"unicorn/no-null": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-string-replace-all": "off",
"unicorn/prevent-abbreviations": "off"
}
}