@d365-community/eslint-plugin-webresources

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i @d365-community/eslint-plugin-webresources

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

6.69 kB

Total Files

5

Last publish

Collaborators

  • prohannes