测试jsxlint,如果extends了该插件,会自动应用一条JsxElement排序的规则
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-lxjsxlint
:
npm install eslint-plugin-lxjsxlint --save-dev
Add lxjsxlint
to the extends section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": [
"plugin:lxlint/lxRule"
]
}
- Fill in provided rules here