forked from rehookify/datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
39 lines (39 loc) · 905 Bytes
/
.eslintrc
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
38
39
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react-hooks", "simple-import-sort", "prettier"],
"extends": [
"plugin:playwright/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-var": 0
},
"overrides": [
{
"files": ["*.test.ts", "*.test.tsx"],
"rules": {
// Allow testing runtime errors to suppress TS errors
"@typescript-eslint/ban-ts-comment": "off"
}
}
],
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}