-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathlibrary.js
44 lines (42 loc) · 1.14 KB
/
library.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
const { resolve } = require("node:path");
const project = resolve(process.cwd(), "tsconfig.json");
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: [
require.resolve("@vercel/style-guide/eslint/node"),
require.resolve("@vercel/style-guide/eslint/jest-react"),
require.resolve("@vercel/style-guide/eslint/react"),
require.resolve("@vercel/style-guide/eslint/typescript"),
],
settings: {
"import/resolver": {
typescript: {
project,
},
},
},
ignorePatterns: [
// Ignore dotfiles
".*.js",
"node_modules/",
"dist/",
],
overrides: [
{
files: ["*.js?(x)", "*.ts?(x)"],
},
],
rules: {
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/consistent-type-imports": "error",
"jest/expect-expect": "warn",
"react/jsx-sort-props": "off",
"unicorn/filename-case": "off",
eqeqeq: "off",
"no-await-in-loop": "off",
"no-implicit-coercion": "off",
},
};