-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
33 lines (33 loc) · 1 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
/* eslint-env node */
module.exports = {
env: {
node: true,
// https://stackoverflow.com/a/60690811
// https://eslint.org/docs/latest/use/configure/language-options
es6: true,
browser: true,
commonjs: true,
},
ignorePatterns: ["packages/*/dist"],
// Linting with type information: https://typescript-eslint.io/linting/typed-linting/
// https://typescript-eslint.io/packages/parser#project: parserOptions.project - "This setting is required if you want to use rules which require type information"
// Configuring monorepos properly: https://typescript-eslint.io/linting/typed-linting/monorepos
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
root: true,
};