1.1.0 • Published 3 years ago
@odoo/eslint-plugin-owl v1.1.0
eslint-plugin-owl
Owl specific rules for Odoo development
Installation
npm install @odoo/eslint-plugin-owlAdd 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/**" }]