-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
45 lines (44 loc) · 1.05 KB
/
.eslintrc.js
File metadata and controls
45 lines (44 loc) · 1.05 KB
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
const prettierConfig = require('./prettier.config.js');
module.exports = {
$schema: 'https://json.schemastore.org/eslintrc',
root: true,
extends: [
'next/core-web-vitals',
'prettier',
'plugin:tailwindcss/recommended',
],
plugins: ['tailwindcss', 'unused-imports', 'prettier'],
rules: {
'@next/next/no-html-link-for-pages': 'off',
'prettier/prettier': ['warn', prettierConfig],
'react/jsx-key': 'off',
'tailwindcss/classnames-order': 'warn',
'tailwindcss/no-custom-classname': 'error',
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
{
ignoreRestSiblings: true,
vars: 'all',
varsIgnorePattern: '^_',
args: 'none',
argsIgnorePattern: '^_',
},
],
},
settings: {
tailwindcss: {
callees: ['cn', 'cva', 'withCn'],
config: 'tailwind.config.js',
},
next: {
rootDir: ['./'],
},
},
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
},
],
};