Skip to content

Commit 66b36ad

Browse files
Merge pull request #5521 from swagger-api/feat/poc-swagger-editor-ts-plugin
feat: expose basic type definitions for swagger-editor and props-change-watcher plugin
2 parents 1fc3219 + 528df78 commit 66b36ad

File tree

21 files changed

+570
-72
lines changed

21 files changed

+570
-72
lines changed

.eslintrc

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2+
"parser": "@typescript-eslint/parser",
23
"extends": [
34
"react-app",
45
"react-app/jest",
56
"airbnb",
67
"plugin:cypress/recommended",
78
"plugin:jsx-a11y/recommended",
89
"prettier",
9-
"plugin:prettier/recommended"
10+
"plugin:prettier/recommended",
11+
"plugin:@typescript-eslint/recommended"
1012
],
1113
"globals": {
1214
"File": true,
@@ -36,8 +38,10 @@
3638
}],
3739
"no-nested-ternary": "off",
3840
"prettier/prettier": "error",
41+
"no-shadow": "off",
3942
"react/react-in-jsx-scope": 0,
4043
"react/require-default-props": "off",
44+
"@typescript-eslint/no-empty-function": "off",
4145
"react/function-component-definition": [1, {
4246
"namedComponents": ["arrow-function"]
4347
}],
@@ -53,6 +57,36 @@
5357
"^@codingame\/monaco-vscode-api",
5458
"^@swagger-api\/apidom-json-pointer"
5559
]
56-
}]
57-
}
60+
}],
61+
"react/jsx-filename-extension": [2,
62+
{
63+
"extensions": [
64+
".tsx",
65+
".jsx"
66+
]
67+
}
68+
]
69+
},
70+
"overrides": [
71+
{
72+
"files": ["*.ts", "*.tsx"],
73+
"rules": {
74+
"import/extensions": "off",
75+
"import/no-unresolved": "off"
76+
}
77+
},
78+
{
79+
"files": ["*.js"],
80+
"rules": {
81+
"@typescript-eslint/return-await": "off"
82+
}
83+
},
84+
{
85+
"files": ["*.d.ts"],
86+
"rules": {
87+
"vars-on-top": "off",
88+
"no-var": "off"
89+
}
90+
}
91+
]
5892
}

0 commit comments

Comments
 (0)