@estjs/eslint-config
v1.2.9
Published
Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3.
Downloads
1,012
Readme
@estjs/eslint-config
Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3.
Features
- 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.
Usage
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',
},
},
);
VSCode
{
"eslint.experimental.useFlatConfig": true
}