|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": ["@typescript-eslint", "simple-import-sort", "import", "header"], |
| 5 | + "extends": [ |
| 6 | + "eslint:recommended", |
| 7 | + "plugin:@typescript-eslint/eslint-recommended", |
| 8 | + "plugin:@typescript-eslint/recommended", |
| 9 | + "plugin:prettier/recommended" |
| 10 | + ], |
| 11 | + "rules": { |
| 12 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 13 | + "@typescript-eslint/no-explicit-any": "off", |
| 14 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 15 | + "header/header": [ |
| 16 | + 2, |
| 17 | + "block", |
| 18 | + [ |
| 19 | + "!", |
| 20 | + { |
| 21 | + "pattern": "^ \\* Copyright \\d{4} WPPConnect Team$", |
| 22 | + "template": " * Copyright 2021 WPPConnect Team" |
| 23 | + }, |
| 24 | + " *", |
| 25 | + " * Licensed under the Apache License, Version 2.0 (the \"License\");", |
| 26 | + " * you may not use this file except in compliance with the License.", |
| 27 | + " * You may obtain a copy of the License at", |
| 28 | + " *", |
| 29 | + " * http://www.apache.org/licenses/LICENSE-2.0", |
| 30 | + " *", |
| 31 | + " * Unless required by applicable law or agreed to in writing, software", |
| 32 | + " * distributed under the License is distributed on an \"AS IS\" BASIS,", |
| 33 | + " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", |
| 34 | + " * See the License for the specific language governing permissions and", |
| 35 | + " * limitations under the License.", |
| 36 | + " " |
| 37 | + ], |
| 38 | + 2 |
| 39 | + ], |
| 40 | + "import/first": "error", |
| 41 | + "import/newline-after-import": "error", |
| 42 | + "import/no-duplicates": "error", |
| 43 | + "no-empty": ["error", { "allowEmptyCatch": true }], |
| 44 | + "simple-import-sort/exports": "error", |
| 45 | + "simple-import-sort/imports": "error" |
| 46 | + }, |
| 47 | + "ignorePatterns": ["webpack.config.js", "dist/*", "wa-source/*"], |
| 48 | + "overrides": [ |
| 49 | + { |
| 50 | + "files": ["src/whatsapp/**/*.ts"], |
| 51 | + "rules": { |
| 52 | + "@typescript-eslint/no-empty-interface": "off", |
| 53 | + "@typescript-eslint/no-namespace": "off" |
| 54 | + } |
| 55 | + } |
| 56 | + ] |
| 57 | +} |
0 commit comments