-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
26 lines (25 loc) · 946 Bytes
/
Copy pathoxlint.config.ts
File metadata and controls
26 lines (25 loc) · 946 Bytes
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
import antiSlop from 'ultracite/oxlint/anti-slop'
import core from 'ultracite/oxlint/core'
import react from 'ultracite/oxlint/react'
import shadcn from 'ultracite/oxlint/shadcn'
import tanstack from 'ultracite/oxlint/tanstack'
import type { OxlintConfig } from 'vite-plus/lint'
export default {
extends: [core, antiSlop, react, tanstack, shadcn],
ignorePatterns: core.ignorePatterns,
jsPlugins: shadcn.jsPlugins,
options: {
typeAware: true,
typeCheck: true,
},
rules: {
'oxc/no-optional-chaining': 'error',
'promise/prefer-await-to-then': 'off',
'shadcn/no-arbitrary-values': ['warn', { allow: ['layout'] }],
'shadcn/no-inline-styles': 'warn',
'shadcn/no-raw-colors': 'warn',
'shadcn/no-restyle': ['warn', { allow: ['layout'] }],
'shadcn/no-unknown-classes': 'warn',
'shadcn/require-static-classes': 'warn',
},
} satisfies OxlintConfig