@luban-ui/eslint-config
v3.0.0
Published
Lu Ban ui ESLint config
Downloads
4
Readme
Lu Ban Eslint Config
- extends from @antfu/eslint-config;
Install
npm i -D eslint @types/eslint @luban-ui/eslint-config
Create config file
With "type": "module" in package.json (recommended):
// eslint.config.js
import luban from '@luban-ui/eslint-config';
export default luban(
// Configures for antfu's config
{
vue: {
// ...
}
},
// From the second arguments they are ESLint Flat Configs
// you can have multiple configs
{
files: ['**/*.ts'],
rules: {}
},
{
rules: {}
}
);
With CJS:
// eslint.config.js
const luban = require('@luban-ui/eslint-config').default;
module.exports = luban();