-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
35 lines (34 loc) · 1.29 KB
/
eslint.config.mjs
File metadata and controls
35 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import globals from "globals"
import pluginJs from "@eslint/js"
import tseslint from "typescript-eslint"
import eslintConfigPrettier from "eslint-config-prettier"
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ files: ["**/*.js"], languageOptions: { sourceType: "script" } },
{ languageOptions: { globals: globals.browser } },
{ ignores: ["dist/*", "node_modules/*", "src/polyfills/*"] },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
// TODO: We need to fix issues related to these rules and remove them
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/prefer-namespace-keyword": "off",
"prefer-const": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-namespace": "off",
"no-prototype-builtins": "off",
"no-var": "off",
"no-case-declarations": "off",
"@typescript-eslint/no-this-alias": "off",
"no-useless-escape": "off",
"no-empty": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
},
eslintConfigPrettier,
]