-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
46 lines (44 loc) · 1.2 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
// @ts-check
/**
* @type {import("eslint").Linter.Config}
* @see https://eslint.org/docs/latest/use/configure/
*/
const eslintConfig = {
extends: [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:prettier/recommended",
],
plugins: ["simple-import-sort"],
rules: {
"@next/next/no-img-element": ["off"],
"simple-import-sort/exports": ["warn"],
"simple-import-sort/imports": ["warn"],
},
ignorePatterns: ["node_modules/", ".next/", "out/", "src/chains/*"],
overrides: [
{
files: ["*.ts", "*.tsx"],
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/ban-types": [
"error",
{
types: {
// un-ban a type that's banned by default
"{}": false,
},
extendDefaults: true,
},
],
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": ["warn"],
},
},
],
root: true,
};
module.exports = eslintConfig;