-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
41 lines (37 loc) · 1.25 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
/**
* Specific eslint rules for this app/package, extends the base rules
* @see https://github.com/belgattitude/nextjs-monorepo-example/blob/main/docs/about-linters.md
*/
// Workaround for https://github.com/eslint/eslint/issues/3458 (re-export of @rushstack/eslint-patch)
require("@aidenlx/eslint-config/patch/modern-module-resolution");
const { getDefaultIgnorePatterns } = require("@aidenlx/eslint-config/helpers");
const typescriptOptions = {
tsconfigRootDir: __dirname,
project: "tsconfig.json",
};
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
root: true,
parserOptions: {
...typescriptOptions,
ecmaVersion: "latest",
sourceType: "module",
},
ignorePatterns: [...getDefaultIgnorePatterns()],
extends: [
"@aidenlx/eslint-config/typescript",
"@aidenlx/eslint-config/regexp",
// Apply prettier and disable incompatible rules
"@aidenlx/eslint-config/prettier",
// "@aidenlx/eslint-config/react",
],
rules: {
"import/no-unresolved": [2, { ignore: ["\\.less$"] }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/naming-convention": "off",
},
settings: { "import/resolver": { typescript: typescriptOptions } },
};