@odoo/eslint-plugin-owl
v1.1.0
Published
Eslint rules specific for owl
Downloads
8
Keywords
Readme
eslint-plugin-owl
Owl specific rules for Odoo development
Installation
npm install @odoo/eslint-plugin-owl
Add the plugin to your list in your eslint config file.
plugins: ["@odoo/owl"]
Use the following available rules in your rules
object.
The rules are namespaced by @odoo/owl
.
Exemple:
// ...
plugins: ["@odoo/owl"],
rules: {
"@odoo/owl/force-component-props-declaration": 2, // 1 for warning, 2 for error
},
// ...
Rules
force-component-props-declaration
Enforce the need to declare a props property to any class extending directly from Component
.
Options:
ignoreGlobs
Allow to define path globs to be ignored by the rule
"@odoo/owl/force-component-props-declaration": [2, { ignoreGlobs: "**/tests/**" }]