forked from awslabs/aws-jwt-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 930 Bytes
/
.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
module.exports = {
env: {
node: true,
},
ignorePatterns: ["*.js", "cdk.out"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["@typescript-eslint", "security"],
rules: {
"linebreak-style": ["error", "unix"],
"@typescript-eslint/no-non-null-assertion": "off",
eqeqeq: ["error", "always", { null: "ignore" }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"no-restricted-globals": [
"error",
{
name: "window",
message:
"Don't use the window global, as you don't need to use it and it's not a defined global in the Next.js Edge Runtime",
},
],
},
};