forked from coinhall/cosmes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
33 lines (33 loc) · 912 Bytes
/
.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
/** @type {import("eslint").Linter.Config} */
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/recommended",
/**
* Should be last in this array to override other configs
* @see https://github.com/prettier/eslint-config-prettier#installation
*/
"prettier",
],
rules: {
// Remove errors for unused args/vars starting with underscore
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
// Remove errors for intentional empty functions
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
"error",
{
allow: ["private-constructors", "protected-constructors"],
},
],
},
};