-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
51 lines (50 loc) · 1.18 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
module.exports = {
overrides: [
{
files: ["*.{ts,tsx}"],
extends: ["plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint", "jsx-a11y"],
rules: {
"@typescript-eslint/await-thenable": "error",
},
},
{
files: ["*.cy.{ts,tsx}", "cypress/**/*.{ts,tsx,js,jsx}", "cypress.config.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./cypress/tsconfig.json"],
},
extends: ["plugin:@typescript-eslint/recommended", "plugin:cypress/recommended"],
plugins: ["@typescript-eslint", "cypress"],
},
],
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ["eslint:recommended", "next/core-web-vitals"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
settings: {
react: {
version: "detect",
},
},
plugins: ["react", "jsx-a11y"],
rules: {
"no-console": "error",
"no-await-in-loop": "error",
"no-return-await": "error",
},
};