@shopware-ag/admin-eslint-rules
v2.0.0
Published
Shopware Administration ESLint rules
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.
