2021-12-25 15:44:24 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"parserOptions": {
|
2022-06-05 10:20:31 +00:00
|
|
|
"tsconfigRootDir": ".",
|
2021-12-25 15:44:24 +00:00
|
|
|
"project": [
|
|
|
|
"./tsconfig.json"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rules": {
|
2022-07-02 14:46:43 +00:00
|
|
|
"prettier/prettier": "error",
|
2021-12-25 15:44:24 +00:00
|
|
|
"no-use-before-define": "off",
|
|
|
|
"no-debugger": "warn",
|
|
|
|
"default-param-last": "off",
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"prefer": "type-imports",
|
|
|
|
"disallowTypeAnnotations": false
|
|
|
|
}
|
2022-06-05 10:20:31 +00:00
|
|
|
],
|
|
|
|
"jest/no-disabled-tests": "warn",
|
|
|
|
"jest/no-focused-tests": "error",
|
|
|
|
"jest/no-identical-title": "error",
|
|
|
|
"jest/prefer-to-have-length": "warn",
|
|
|
|
"jest/valid-expect": "error"
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"jest": true,
|
|
|
|
"jest/globals": true
|
2021-12-25 15:44:24 +00:00
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint",
|
2022-06-05 10:20:31 +00:00
|
|
|
"testing-library",
|
2022-07-02 14:46:43 +00:00
|
|
|
"jest",
|
|
|
|
"prettier"
|
2021-12-25 15:44:24 +00:00
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"next/core-web-vitals",
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
|
|
"prettier"
|
|
|
|
],
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"**/__tests__/**/*.[jt]s?(x)",
|
|
|
|
"**/?(*.)+(spec|test).[jt]s?(x)"
|
|
|
|
],
|
|
|
|
"extends": ["plugin:testing-library/react"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|