-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
64 lines (62 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const { resolve } = require('node:path');
const project = resolve(process.cwd(), 'tsconfig.json');
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: [
'@vercel/style-guide/eslint/node',
'@vercel/style-guide/eslint/typescript',
'@vercel/style-guide/eslint/browser',
'@vercel/style-guide/eslint/react',
'@vercel/style-guide/eslint/next',
]
.map(require.resolve)
.concat('plugin:tailwindcss/recommended'),
root: true,
parserOptions: {
project,
},
rules: {
'unicorn/filename-case': 'off',
'no-console': 'off',
'import/order': 'off',
'import/no-anonymous-default-export': 'off',
'import/named': 'off',
'import/no-default-export': 'off',
'react/no-unknown-property': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-pascal-case': 'off',
'@next/next/no-img-element': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
},
globals: {
React: true,
JSX: true,
},
ignorePatterns: [
'**/.eslintrc.*',
'**/tailwind.config.*',
'**/postcss.config.*',
'**/.prettier.*',
'.next',
'.sst',
'dist',
'build',
'pnpm-lock.yaml',
'node_modules',
],
settings: {
'import/resolver': {
typescript: {
project,
},
node: {
extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx'],
},
},
},
};