-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
38 lines (37 loc) · 1.18 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
/* 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,
},
// 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",
"plugin:@choreography-ts/choreography-ts/base",
"prettier",
],
parserOptions: {
project: true, // Required for using rules that need type information!
tsconfigRootDir: __dirname,
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "@choreography-ts/choreography-ts"],
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
root: true,
};