MM-26572 Improve tooling around typescript (#105)

* Upstream typescript tooling changes.

* Update rest of dependencies.
This commit is contained in:
Christopher Speller 2020-07-09 06:51:28 -07:00 committed by GitHub
parent becbbc9685
commit 7cdbf90a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4904 additions and 6122 deletions

View file

@ -1,5 +1,8 @@
{
"extends": "eslint:recommended",
"extends": [
"eslint:recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
@ -60,12 +63,6 @@
"allowSingleLine": false
}
],
"camelcase": [
2,
{
"properties": "never"
}
],
"capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": [
@ -270,7 +267,7 @@
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": [
1,
0,
{
"ignore": [
-1,
@ -548,7 +545,7 @@
}
],
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 0,
"react/prefer-stateless-function": 2,
"react/prop-types": [
2,
{
@ -638,8 +635,13 @@
"files": ["**/*.tsx", "**/*.ts"],
"extends": "plugin:@typescript-eslint/recommended",
"rules": {
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/ban-types": 1,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/indent": [
2,
4,
@ -655,12 +657,6 @@
"variables": false
}
],
"@typescript-eslint/camelcase": [
2,
{
"properties": "never"
}
],
"react/jsx-filename-extension": [
1,
{