blob: 323d2570327c53c705f3deed39b741674f8b34bb [file] [log] [blame]
Adrien Béraud2b3c2cd2022-09-18 14:24:33 -04001{
simon7a7b4d52022-09-23 02:09:42 -04002 "env": {
3 "browser": true,
4 "es2021": true,
5 "node": true
6 },
simon08a23162022-09-29 17:36:17 -04007 "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 ],
simon7a7b4d52022-09-23 02:09:42 -040015 "ignorePatterns": ["node_modules/", "dist/", "daemon/", "test/"],
16 "overrides": [
17 {
18 "files": ["**/*.test.{js,jsx,ts,tsx}"],
19 "env": {
20 "jest": true
21 }
Adrien Béraud2b3c2cd2022-09-18 14:24:33 -040022 }
simon7a7b4d52022-09-23 02:09:42 -040023 ],
24 "parser": "@typescript-eslint/parser",
25 "parserOptions": {
26 "ecmaVersion": "latest",
27 "sourceType": "module"
28 },
simon08a23162022-09-29 17:36:17 -040029 "plugins": ["@typescript-eslint", "simple-import-sort", "unused-imports"],
simon7a7b4d52022-09-23 02:09:42 -040030 "rules": {
simon7a7b4d52022-09-23 02:09:42 -040031 "@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",
simon08a23162022-09-29 17:36:17 -040035 "eqeqeq": ["warn", "smart"],
simon218d3d12022-10-01 17:27:01 -040036 "no-constant-condition": ["error", { "checkLoops": false }],
simon08a23162022-09-29 17:36:17 -040037 "simple-import-sort/exports": "warn",
38 "simple-import-sort/imports": "warn",
simon7a7b4d52022-09-23 02:09:42 -040039 "unused-imports/no-unused-imports": "error",
40 "unused-imports/no-unused-vars": [
41 "warn",
42 { "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
43 ]
44 }
Adrien Béraud2b3c2cd2022-09-18 14:24:33 -040045}