0.0.14 • Published 12 months ago

@col0ring/eslint-config v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@col0ring/eslint-config

Col0ring's Eslint Config Presets.

Install

npm install eslint @col0ring/eslint-config -D
# or
yarn add eslint @col0ring/eslint-config -D

Usage

// .eslintrc.js
module.exports = {
  // js,ts and react
  extends: ['@col0ring/eslint-config'],
  // or
  // extends: ["@col0ring"]
}

If you need a separate configuration:

// .eslintrc.js
module.exports = {
  // js ts and react
  extends: [
    // test env, not in the default configuration, must be the first extends configuration
    '@col0ring/eslint-config/test',
    '@col0ring/eslint-config/basic',
    '@col0ring/eslint-config/typescript',
    '@col0ring/eslint-config/react',
  ],
}

This config has built-in prettier, you need to create a prettier.config.js file and set the following configuration:

// prettier.config.js
module.exports = require('@col0ring/prettier-config')()

See More: @col0ring/prettier-config