-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 1.02 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
module.exports = {
extends: [
`@hallarhq/eslint-config`,
'plugin:@next/next/recommended',
// 'plugin:@typescript-eslint/recommended', TODO: these rules provide stricter linting for the application and should be activated at some point
// 'plugin:@typescript-eslint/eslint-recommended',
],
plugins: ['tailwindcss', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
ignorePatterns: ['**/*.cy.ts'],
settings: {
react: {
version: `detect`,
},
},
overrides: [
{
files: ['*.tsx', '*.ts'],
rules: {
'no-undef': 'off',
'tailwindcss/classnames-order': 'warn',
'tailwindcss/enforces-negative-arbitrary-values': 'warn',
'tailwindcss/enforces-shorthand': 'warn',
'tailwindcss/migration-from-tailwind-2': 'warn',
'tailwindcss/no-arbitrary-value': 'off',
'tailwindcss/no-custom-classname': 'off',
'tailwindcss/no-contradicting-classname': 'error',
'@typescript-eslint/naming-convention': 'off',
},
},
],
};