-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.02 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: [
"./tsconfig.eslint.json",
"lambdas/**/tsconfig.json",
"integration-tests/tsconfig.json",
],
sourceType: "module",
ecmaVersion: 2022,
ecmaFeatures: {
impliedStrict: true,
},
},
env: {
node: true,
es2022: true,
jest: true,
},
globals: {
sinon: true,
expect: true,
},
plugins: ["@typescript-eslint"],
extends: [
"prettier",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
],
ignorePatterns: [
"node_modules",
".aws-sam",
"build",
"dist",
"dotenv",
"coverage",
],
rules: {
"no-console": 2,
"padding-line-between-statements": [
"error",
{ blankLine: "any", prev: "*", next: "*" },
],
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
],
},
};