-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.eslintrc.cjs
42 lines (38 loc) · 1.14 KB
/
.eslintrc.cjs
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
"use strict";
module.exports = {
root: true,
extends: [
"eslint"
],
parserOptions: {
ecmaVersion: 2020
},
/*
* it fixes eslint-plugin-jsdoc's reports: "Invalid JSDoc tag name "template" jsdoc/check-tag-names"
* refs: https://github.com/gajus/eslint-plugin-jsdoc#check-tag-names
*/
settings: {
jsdoc: {
mode: "typescript"
}
},
overrides: [
{
files: ["tests/**/*"],
env: { mocha: true },
rules: {
"no-restricted-syntax": ["error", {
selector: "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']",
message: "`assert.doesNotThrow()` should be replaced with a comment next to the code."
}],
// Overcome https://github.com/mysticatea/eslint-plugin-node/issues/250
"node/no-unsupported-features/es-syntax": ["error", {
ignores: [
"modules",
"dynamicImport"
]
}]
}
}
]
};