-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
28 lines (28 loc) · 969 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
reportUnusedDisableDirectives: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
// plugins: ["sonarjs", "jest"],
extends: [
// Disable broken plugin
// TypeError: Failed to load plugin 'jsx-a11y' declared in '.eslintrc.js » eslint-config-next': `[[GeneratorState]]` is not present on `O`
// "next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
],
// ignorePatterns: ["**/__tests__/**/*.ts"],
rules: {
// We shouldn't really use ANY but we can't have everything perfect
"@typescript-eslint/no-explicit-any": "off",
// We kinda need interface not type
"@typescript-eslint/no-empty-interface": "off",
// Disable ts ignore
"@typescript-eslint/ban-ts-comment": "off",
// In many cases we don't want the variables to be part of the hook
"react-hooks/exhaustive-deps": "off",
},
overrides: [],
};