|
| 1 | +{ |
| 2 | + "extends": ["eslint:recommended", "plugin:prettier/recommended"], |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "module", |
| 5 | + "ecmaVersion": 2022 |
| 6 | + }, |
| 7 | + "env": { |
| 8 | + "browser": true, |
| 9 | + "es2022": true, |
| 10 | + "qunit": true |
| 11 | + }, |
| 12 | + "rules": { |
| 13 | + "prettier/prettier": ["error", { |
| 14 | + "tabWidth": 4, |
| 15 | + "semi": true, |
| 16 | + "singleQuote": false, |
| 17 | + "printWidth": 100, |
| 18 | + "endOfLine": "auto" |
| 19 | + }], |
| 20 | + "no-undef": "error", |
| 21 | + "no-restricted-globals": ["error", "event", "self"], |
| 22 | + "no-const-assign": ["error"], |
| 23 | + "no-debugger": ["error"], |
| 24 | + "no-dupe-class-members": ["error"], |
| 25 | + "no-dupe-keys": ["error"], |
| 26 | + "no-dupe-args": ["error"], |
| 27 | + "no-dupe-else-if": ["error"], |
| 28 | + "no-unsafe-negation": ["error"], |
| 29 | + "no-duplicate-imports": ["error"], |
| 30 | + "valid-typeof": ["error"], |
| 31 | + "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }], |
| 32 | + "curly": ["error", "all"], |
| 33 | + "no-restricted-syntax": ["error", "PrivateIdentifier"], |
| 34 | + "prefer-const": ["error", { |
| 35 | + "destructuring": "all", |
| 36 | + "ignoreReadBeforeAssign": true |
| 37 | + }], |
| 38 | + "arrow-body-style": ["error", "as-needed"] |
| 39 | + }, |
| 40 | + "globals": { |
| 41 | + "odoo": "readonly", |
| 42 | + "$": "readonly", |
| 43 | + "jQuery": "readonly", |
| 44 | + "Chart": "readonly", |
| 45 | + "fuzzy": "readonly", |
| 46 | + "StackTrace": "readonly", |
| 47 | + "QUnit": "readonly", |
| 48 | + "luxon": "readonly", |
| 49 | + "py": "readonly", |
| 50 | + "FullCalendar": "readonly", |
| 51 | + "globalThis": "readonly", |
| 52 | + "ScrollSpy": "readonly", |
| 53 | + "module": "readonly", |
| 54 | + "chai": "readonly", |
| 55 | + "describe": "readonly", |
| 56 | + "it": "readonly", |
| 57 | + "mocha": "readonly", |
| 58 | + "DOMPurify": "readonly", |
| 59 | + "Prism": "readonly", |
| 60 | + |
| 61 | + "Alert": "readonly", |
| 62 | + "Collapse": "readonly", |
| 63 | + "Dropdown": "readonly", |
| 64 | + "Modal": "readonly", |
| 65 | + "Offcanvas": "readonly", |
| 66 | + "Popover": "readonly", |
| 67 | + "Tooltip": "readonly" |
| 68 | + } |
| 69 | +} |
0 commit comments