Skip to content

Commit dbf9c91

Browse files
authored
refactor: Run ESLint against TypeScript files (#2135)
1 parent 3123819 commit dbf9c91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+468
-432
lines changed

.eslintrc.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
"extends": [
44
"eslint:recommended",
55
"plugin:jsdoc/recommended",
6-
"plugin:flowtype/recommended"
6+
"plugin:flowtype/recommended",
7+
"plugin:@typescript-eslint/recommended"
78
],
89
"env": {
910
"node": true,
1011
"es6": true
1112
},
12-
"parser": "@babel/eslint-parser",
13+
"parser": "@typescript-eslint/parser",
1314
"globals": {
1415
"wx": true
1516
},
1617
"plugins": [
1718
"flowtype",
18-
"jsdoc"
19+
"jsdoc",
20+
"@typescript-eslint"
1921
],
2022
"parserOptions": {
2123
"ecmaVersion": 6,
@@ -36,6 +38,12 @@
3638
"no-console": 0,
3739
"no-prototype-builtins": "off",
3840
"require-atomic-updates": "off",
41+
"prefer-spread": "off",
42+
"prefer-rest-params": "off",
43+
"@typescript-eslint/no-empty-function": "off",
44+
"@typescript-eslint/no-explicit-any": "off",
45+
"@typescript-eslint/no-var-requires": "off",
46+
"@typescript-eslint/no-non-null-assertion": "off",
3947
"flowtype/no-types-missing-file-annotation": 0,
4048
"jsdoc/require-jsdoc": 0,
4149
"jsdoc/require-returns-description": 0,

0 commit comments

Comments
 (0)