1.1.1 • Published 4 years ago

eslint-config-standard-ye v1.1.1

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

eslint-config-standard-ye

eslint config for ye

Installation

You'll first need to install ESLint:

$ yarn i -D eslint

Next, install eslint-config-standard-ye:

$ yarn i -D eslint-config-standard-ye eslint-config-standard-ye-ts

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-config-standard-ye globally.

Usage

Add eslint-config-standard-ye to the extends section of your .eslintrc.js configuration file.

It needs .eslintrc.js format config file

module.exports = {
  extends: [
    'standard-ye'
  ],
  // eslint currently not support extends in overrids, so that use this hacking
  // https://github.com/eslint/eslint/issues/8813
  overrides: Object.assign({
    files: ['**/*.ts', '**/*.tsx'],
  }, require('eslint-config-standard-ye-ts'))
};