1.1.0 • Published 1 year ago

@odoo/eslint-plugin-owl v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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/**" }]
1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago