@addepar/eslint-config 中文文档教程
@addepar/eslint-config
这个 ESLint 插件支持 Javascript 和 Ember.js linting。
来自 eslint-plugin-ember 的 Ember.js 特定规则。
Using the plugin with Ember CLI
Installation
在您的 Ember CLI 项目中将插件作为开发依赖项安装。
yarn add --dev @addepar/eslint-config
Configuration
仅包含 Javascript 规则:
// .eslintrc.js
module.exports = {
extends: ["@addepar"],
rules: {
// custom rules
// rules overrides
}
};
仅包含 Ember.js 规则:
// .eslintrc.js
module.exports = {
extends: ["@addepar/eslint-config/ember"],
rules: {
// custom rules
// rules overrides
}
};
@addepar/eslint-config
This ESLint plugin supports both Javascript and Ember.js linting.
Ember.js specific rules from eslint-plugin-ember.
Using the plugin with Ember CLI
Installation
Install the plugin as a dev dependency in your Ember CLI project.
yarn add --dev @addepar/eslint-config
Configuration
To include just Javascript rules:
// .eslintrc.js
module.exports = {
extends: ["@addepar"],
rules: {
// custom rules
// rules overrides
}
};
To include just Ember.js rules:
// .eslintrc.js
module.exports = {
extends: ["@addepar/eslint-config/ember"],
rules: {
// custom rules
// rules overrides
}
};
更多
你可能也喜欢
- @1xinternet/editable-webpack-config 中文文档教程
- @29aries/mws-advanced 中文文档教程
- @555platform/portal-components 中文文档教程
- @aacassandra/ivue-cli 中文文档教程
- @aaneto/lambda-ts-cli 中文文档教程
- @aaronhayes/hasura-sdk 中文文档教程
- @abcpros/xaddress 中文文档教程
- @abhaykumar01234/shadowizard 中文文档教程
- @abradley2/frpuccino 中文文档教程
- @abranhe/playground 中文文档教程