@w6s/eslint-config

2.2.0 • Public • Published

Eslint Config of WorkPlusFE

2.0 only supports vue3. If it is vue2, please use version 1.x

Install

// npm
npm i eslint prettier @w6s/eslint-config -D

// yarn
yarn add eslint prettier @w6s/eslint-config --dev

Usage

{
  "extends": ["@w6s"]
}

Rules

{
  'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  'no-alert': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  'no-restricted-syntax': 'off',
  'import/no-cycle': 'off',
  'import/no-unresolved': 'off',
  'import/extensions': 'off',
  'import/prefer-default-export': 'off',
  'class-methods-use-this': 'off',
  'object-curly-newline': 'off',
  'no-param-reassign': 'off',
  'implicit-arrow-linebreak': 'off',
  'consistent-return': 'off',
  '@typescript-eslint/no-explicit-any': 'off',
  '@typescript-eslint/explicit-function-return-type': 'off',
  '@typescript-eslint/no-var-requires': 'off',
}

Readme

Keywords

Package Sidebar

Install

npm i @w6s/eslint-config

Weekly Downloads

2

Version

2.2.0

License

MIT

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • q106357
  • muzi23
  • hejx