Skip to content

Commit 9adc640

Browse files
feat: export basic type definitions for swagger editor and props-change-watcher plugin
1 parent 1fc3219 commit 9adc640

19 files changed

Lines changed: 517 additions & 61 deletions

.eslintrc

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"react-app",
44
"react-app/jest",
55
"airbnb",
6+
"airbnb-typescript",
67
"plugin:cypress/recommended",
78
"plugin:jsx-a11y/recommended",
89
"prettier",
@@ -19,7 +20,8 @@
1920
"parserOptions": {
2021
"ecmaFeatures": {
2122
"jsx": true
22-
}
23+
},
24+
"project": "tsconfig.json"
2325
},
2426
"plugins": [
2527
"jsx-a11y",
@@ -54,5 +56,27 @@
5456
"^@swagger-api\/apidom-json-pointer"
5557
]
5658
}]
57-
}
59+
},
60+
"overrides": [
61+
{
62+
"files": ["*.ts", "*.tsx"],
63+
"rules": {
64+
"import/extensions": "off",
65+
"import/no-unresolved": "off"
66+
}
67+
},
68+
{
69+
"files": ["*.js"],
70+
"rules": {
71+
"@typescript-eslint/return-await": "off"
72+
}
73+
},
74+
{
75+
"files": ["globals.d.ts"],
76+
"rules": {
77+
"vars-on-top": "off",
78+
"no-var": "off"
79+
}
80+
}
81+
]
5882
}

0 commit comments

Comments
 (0)