eslint-config-antife

2019-09-18 admin

eslint-config-antife是什么

什么是eslint-config-antife,Eslint config for Ant international FE team

eslint-config-antife使用教程帮助文档

eslint-config-antife

NPM version build status Test coverage node version

Eslint config for Ant international FE team

Usage

require eslint@5

For general project

$ npm i eslint --save-dev
$ npm i eslint-config-antife --save-dev

Add .eslintrc.js in your root directory.

module.exports = {
  extends: 'antife',
}

For Vue.js project

$ npm i eslint --save-dev
$ npm i eslint-config-antife --save-dev
$ npm i eslint-plugin-vue --save-dev

Add .eslintrc.js in your root directory.

module.exports = {
  extends: [
    'antife',
    'plugin:vue/recommended',
  ],
  rules: {
    // "vue/attributes-order": 0,
  }
};

vue rules, please refer to https://eslint.vuejs.org/rules/

License

The MIT License (MIT)

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75372.html

文章标题:eslint-config-antife

回到顶部