Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3.
- Format with Biome.
- Designed to work with TypeScript, Vue 2 and 3 out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports,
package.json
,tsconfig.json
... - ESLint Flat config, compose easily!
- Reasonable defaults, best practices, only one-line of config
Require Node.js >= 16.14.
import { estjs } from '@estjs/eslint-config';
export default estjs(
// Features: it'll detect installed dependency and enable necessary features automatically
{
biome: true,
markdown: true,
vue: true, // auto detection
unocss: false, // auto detection
},
// overrides config
{
javascript: {
'unused-imports/no-unused-imports': 'off',
'unused-imports/no-unused-vars': 'off',
'no-console': 'off',
},
unicorn: {
'unicorn/filename-case': 'off',
},
imports: {
'import/no-default-export': 'off',
},
},
);
{
"eslint.experimental.useFlatConfig": true
}