forked from final-form/final-form
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (35 loc) · 981 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
29
30
31
32
33
34
35
36
37
/* eslint-env node */
/** @type {import("eslint").Linter.Config} */
const eslintConfig = {
extends: ["plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
"jest",
"prettier",
"react",
"react-hooks",
"simple-import-sort",
],
rules: {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-shadow": ["error", { hoist: "functions" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "after-used",
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"no-console": "warn",
"no-unreachable": "error",
"prettier/prettier": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
};
module.exports = eslintConfig;