Adrien Béraud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 1 | { |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 2 | "env": { |
| 3 | "browser": true, |
| 4 | "es2021": true, |
| 5 | "node": true |
| 6 | }, |
simon | 08a2316 | 2022-09-29 17:36:17 -0400 | [diff] [blame] | 7 | "extends": [ |
| 8 | "eslint:recommended", |
| 9 | "plugin:@typescript-eslint/recommended", |
| 10 | /* TODO: Enable these configs once the project is fully converted to typescript */ |
| 11 | // "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 12 | // "plugin:@typescript-eslint/strict", |
| 13 | "prettier" |
| 14 | ], |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 15 | "ignorePatterns": ["node_modules/", "dist/", "daemon/", "test/"], |
| 16 | "overrides": [ |
| 17 | { |
| 18 | "files": ["**/*.test.{js,jsx,ts,tsx}"], |
| 19 | "env": { |
| 20 | "jest": true |
| 21 | } |
Adrien Béraud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 22 | } |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 23 | ], |
| 24 | "parser": "@typescript-eslint/parser", |
| 25 | "parserOptions": { |
| 26 | "ecmaVersion": "latest", |
| 27 | "sourceType": "module" |
| 28 | }, |
simon | 08a2316 | 2022-09-29 17:36:17 -0400 | [diff] [blame] | 29 | "plugins": ["@typescript-eslint", "simple-import-sort", "unused-imports"], |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 30 | "rules": { |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 31 | "@typescript-eslint/ban-ts-comment": "off", |
| 32 | "@typescript-eslint/no-empty-function": "off", |
| 33 | "@typescript-eslint/no-explicit-any": "off", |
| 34 | "@typescript-eslint/no-unused-vars": "off", |
simon | 08a2316 | 2022-09-29 17:36:17 -0400 | [diff] [blame] | 35 | "eqeqeq": ["warn", "smart"], |
| 36 | "simple-import-sort/exports": "warn", |
| 37 | "simple-import-sort/imports": "warn", |
simon | 7a7b4d5 | 2022-09-23 02:09:42 -0400 | [diff] [blame] | 38 | "unused-imports/no-unused-imports": "error", |
| 39 | "unused-imports/no-unused-vars": [ |
| 40 | "warn", |
| 41 | { "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" } |
| 42 | ] |
| 43 | } |
Adrien Béraud | 2b3c2cd | 2022-09-18 14:24:33 -0400 | [diff] [blame] | 44 | } |