@shopware-ag/admin-eslint-rules
v1.0.5
Published
Shopware Administration ESLint rules
Downloads
679
Readme
ESLint Rules for Shopware Administration
This package provides ESLint rules for the Shopware Administration.
Installation
You can install this package using npm:
npm install @shopware-ag/admin-eslint-rules --save-devUsage
Add the following to your .eslintrc.js file:
module.exports = {
"plugins": [
"@shopware-ag/admin-eslint-rules"
],
"rules": {
"@shopware-ag/admin-eslint-rules/no-snippet-import": "error",
"@shopware-ag/admin-eslint-rules/no-src-import": "error",
"@shopware-ag/admin-eslint-rules/no-sw-extension-override": "error",
"@shopware-ag/admin-eslint-rules/require-explict-emits": "error",
"@shopware-ag/admin-eslint-rules/state-import": "error"
}
};Rules
no-snippet-import: Prevents direct import of snippets.no-src-import: Prevents direct import ofsrcfiles.no-sw-extension-override: Prevents overriding ofsw-extensioncomponents.require-explict-emits: Requires explicit emits in components.state-import: Enforces correct import of state.
