8000 GitHub - yuersen/eslint-config-yuer: ESLint shareable config for the yuer JavaScript style guide.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yuersen/eslint-config-yuer

Repository files navigation

eslint-config-yuer

ESLint shareable config for the yuer JavaScript style guide.

中文 README

Installation

$ npm install --save-dev eslint eslint-plugin-vue eslint-config-yuer

Documents

Usage

Once the eslint-config-yuer package is installed, you can use it by specifying yuer in the extends section of your ESLint configuration.

{
  "extends": "yuer",
  "rules": {
    // Additional, per-project rules...
  }
}

Using the yuer config with eslint:recommended

There are several rules in the eslint:recommended ruleset that yuer style is not opinionated about that you might want to enforce in your project.

To use yuer style in conjunction with ESLint's recommended rule set, extend them both, making sure to list yuer last:

{
  "extends": ["eslint:recommended", "plugin:vue/recommended", "yuer"],
  "rules": {
    // Additional, per-project rules...
  }
}

To see how the yuer config compares with eslint:recommended, refer to the source code of index.js, which lists every ESLint rule along with whether (and how) it is enforced by the yuer config.

License

Apache-2 © yuer

About

ESLint shareable config for the yuer JavaScript style guide.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0