forked from cloudinary-community/cloudinary-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
42 lines (41 loc) · 1.14 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
39
40
41
42
// @ts-check
const { defineConfig } = require("eslint-define-config");
module.exports = defineConfig({
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import", "only-warn"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier",
"next",
],
ignorePatterns: ["**/dist/**", "**/node_modules/**", "**/*js"],
settings: {
"import/parsers": {
"@typescript-eslint/parser": ["ts", "tsx"],
},
"import/resolver": {
typescript: true,
node: true,
},
next: {
rootDir: ["docs/"],
},
},
rules: {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"import/no-cycle": "warn",
"@typescript-eslint/consistent-type-imports": [
"warn",
{ fixStyle: "inline-type-imports" },
],
"@typescript-eslint/no-import-type-side-effects": "warn",
"import/no-duplicates": ["warn", { "prefer-inline": true }],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
});