2.2.0 • Published 3 years ago

@w6s/eslint-config v2.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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',
}