Preferred ESLint configs for myself.
yarn add -D @brownsugar/eslint-config
# or
pnpm add -D @brownsugar/eslint-config
The base config, inherits below rule sets with some custom rules.
const brownsugarConfig = require('@brownsugar/eslint-config/typescript')
module.exports = brownsugarConfig
import brownsugarConfig from '@brownsugar/eslint-config/typescript'
export default brownsugarConfig
The config to use with TypeScript, inherits @brownsugar/eslint-config/typescript
with Vue 3 recommended.
const brownsugarConfig = require('@brownsugar/eslint-config/vue')
module.exports = brownsugarConfig
import brownsugarConfig from '@brownsugar/eslint-config/vue'
export default brownsugarConfig
The config to use with TypeScript, inherits @brownsugar/eslint-config/vue
with Nuxt 3 config.
// Not supported
import brownsugarConfig from '@brownsugar/eslint-config/nuxt'
export default brownsugarConfig({
// Nuxt ESLint options
dirs: {
src: ['src'],
},
})