*: auth_totp_portal, mrp_subcontracting, project, survey, web_editor, website, website_links, website_sale_loyalty, website_slides, test_lint, spreadsheet Implements missing `clipboard.write()` and `ClipboardItem` ; targets only Firefox (which partially implements Clipboard API, features hidden behind a preference flag). Supported browsers: Chromium 76+, Safari 13.1+, Firefox 63+, Safari iOS 13.4+. This allows to replace ClipboardJS by the native Clipboard Web API. Reference: https://caniuse.com/?search=clipboard https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API https://w3c.github.io/clipboard-apis/ task-3439226 closes odoo/odoo#134881 Related: odoo/enterprise#47154 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
67 lines
1.7 KiB
JSON
67 lines
1.7 KiB
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es2022": true,
|
|
"qunit": true
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": ["error", {
|
|
"tabWidth": 4,
|
|
"semi": true,
|
|
"singleQuote": false,
|
|
"printWidth": 100,
|
|
"endOfLine": "auto"
|
|
}],
|
|
"no-undef": "error",
|
|
"no-restricted-globals": ["error", "event", "self"],
|
|
"no-const-assign": ["error"],
|
|
"no-debugger": ["error"],
|
|
"no-dupe-class-members": ["error"],
|
|
"no-dupe-keys": ["error"],
|
|
"no-dupe-args": ["error"],
|
|
"no-dupe-else-if": ["error"],
|
|
"no-unsafe-negation": ["error"],
|
|
"no-duplicate-imports": ["error"],
|
|
"valid-typeof": ["error"],
|
|
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }],
|
|
"curly": ["error", "all"],
|
|
"no-restricted-syntax": ["error", "PrivateIdentifier"],
|
|
"prefer-const": ["error", {
|
|
"destructuring": "all",
|
|
"ignoreReadBeforeAssign": true
|
|
}]
|
|
},
|
|
"globals": {
|
|
"odoo": "readonly",
|
|
"$": "readonly",
|
|
"jQuery": "readonly",
|
|
"_": "readonly",
|
|
"Chart": "readonly",
|
|
"fuzzy": "readonly",
|
|
"Popover": "readonly",
|
|
"StackTrace": "readonly",
|
|
"QUnit": "readonly",
|
|
"luxon": "readonly",
|
|
"py": "readonly",
|
|
"FullCalendar": "readonly",
|
|
"globalThis": "readonly",
|
|
"Modal": "readonly",
|
|
"Dropdown": "readonly",
|
|
"ScrollSpy": "readonly",
|
|
"Tooltip": "readonly",
|
|
"Collapse": "readonly",
|
|
"Alert": "readonly",
|
|
"module": "readonly",
|
|
"chai": "readonly",
|
|
"describe": "readonly",
|
|
"it": "readonly",
|
|
"mocha": "readonly",
|
|
"DOMPurify": "readonly"
|
|
}
|
|
}
|