@d365-community/eslint-plugin-webresources
v1.0.2
Published
eslint extension plugin to enforce rules and styles for D365 webresources
Downloads
9
Readme
eslint-webresources-plugin
eslint extension plugin to enforce rules and styles for D365 webresources
prerequisite
see eslint to setup/use eslint in generell
.git submodule
- add submodule:
git submodule--helper add https://github.com/d365-community/eslint-webresources-plugin d365-community-eslint-webresources-plugin -b main
- update submodules:
git submodule update --remote --init
install
npm install ./d365-community-eslint-webresources-plugin --save-dev
devDependencies
see package.json dev dependency
"devDependencies": {
[...]
"eslint-plugin-d365-community-webresources": "file:d365-community-eslint-webresources-plugin",
[...]
}
eslintrc
manage .eslintrc.json
"plugins": [
[...]
"d365-community-webresources"
],
"rules": {
[...]
"d365-community-webresources/webresource-accessibility": "error",
"d365-community-webresources/webresource-static": "error",
"d365-community-webresources/webresource-referrer": "error",
[...]
},
npm package
comming soon