/eslint-plugin

An opinionated eslint plugin

Primary LanguageTypeScriptMIT LicenseMIT

@lbwa/eslint-plugin

An opinionated eslint plugin.

Installation

pnpm i @lbwa/eslint-plugin eslint@^8.6.0 -D

Usage

Recommended

module.exports = {
  plugins: ['@lbwa'],
  extends: ['plugin:@lbwa/recommended']
}

Only JavaScript rules

module.exports = {
  plugins: ['@lbwa'],
  extends: ['plugin:@lbwa/javascript']
}

TypeScript + JavaScript rules

Alternative to recommended

module.exports = {
  plugins: ['@lbwa'],
  // ensure orders
  extends: ['plugin:@lbwa/javascript', 'plugin:@lbwa/typescript']
}

License

MIT © Liu Bowen