-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
30 lines (29 loc) · 1000 Bytes
/
eslint.config.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
import eslint from '@eslint/js'
import prettierConfig from 'eslint-config-prettier'
import astroPlugin from 'eslint-plugin-astro'
import tailwindPlugin from 'eslint-plugin-tailwindcss'
import tseslint from 'typescript-eslint'
export default [
{
ignores: ['.astro', '.wrangler', 'dist', 'src/env.d.ts']
},
...tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended
),
...astroPlugin.configs['flat/recommended'],
...astroPlugin.configs['flat/jsx-a11y-recommended'],
{
plugins: { tailwindcss: tailwindPlugin },
rules: {
// Turns off rules that conflict with Prettier
...prettierConfig.rules,
'@typescript-eslint/no-non-null-assertion': 'error',
'tailwindcss/classnames-order': 'error',
'tailwindcss/enforces-negative-arbitrary-values': 'error',
'tailwindcss/enforces-shorthand': 'error',
'tailwindcss/migration-from-tailwind-2': 'warn',
'tailwindcss/no-contradicting-classname': 'error'
}
}
]