ESLint Shareable Config for WXAPP based on the O2Team Javascript Style Guide
$ npm install --save-dev eslint eslint-config-o2team-wx
Once the eslint-config-o2team-wx
package is installed, you can use it by specifying o2team-wx
in the extends
section of your ESLint configuration.
{
"extends": "o2team-wx",
"rules": {
// Additional, per-project rules...
}
}
Or you can specifying eslint-config-o2team-wx
in the eslintConfig
section of your package.json
{
"eslintConfig": {
"extends": "eslint-config-o2team-wx"
}
}