@oliver139/eslint-config
v7.1.0
Published
Oliver's ESLint config preset powered by @antfu/eslint-config
Readme
Oliver's ESLint Config
My options of @antfu/eslint-config.
The 3rd version of my eslint config preset, which uses overrides to customize instead, so to simplify each time updating it.
Tailwind linting is supported using eslint-plugin-better-tailwindcss
Install
npm install -D eslint @oliver139/eslint-config@7 @antfu/eslint-configUsage
import antfu from '@antfu/eslint-config'
import { options } from '@oliver139/eslint-config'
export default antfu(...options({
tailwind: {
// tailwindcss 4: the path to the entry file of the css based tailwind config (eg: `src/global.css`)
entryPoint: 'src/global.css',
// tailwindcss 3: the path to the tailwind config file (eg: `tailwind.config.js`)
tailwindConfig: 'tailwind.config.js',
// File to be watched, below is the default value
files: ['**/*.vue', '**/*.html'],
// To overrides rules:
overrides: {
'better-tailwindcss/enforce-logical-properties': 'error',
}
},
}))