-
Notifications
You must be signed in to change notification settings - Fork 645
CONSOLE-2501: Upgrade TypeScript version to 4.5 #12821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e500750
e96d39f
aeb1cee
c2d2493
5aa0d4a
50f8f1c
066e6b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ module.exports = { | |
es6: true, | ||
jasmine: true, | ||
jest: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
|
@@ -19,13 +20,11 @@ module.exports = { | |
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
comment: true, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 2017, | ||
ecmaVersion: 2018, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All ESLint configs reconciled to use |
||
extraFileExtensions: ['.json'], | ||
sourceType: 'module', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed since this option is not supported. https://github.com/typescript-eslint/typescript-eslint/tree/v5.43.0/packages/parser |
||
tsconfigRootDir: './', | ||
}, | ||
plugins: ['react', 'react-hooks', '@typescript-eslint', 'graphql', 'eslint-plugin-tsdoc'], | ||
|
@@ -53,8 +52,9 @@ module.exports = { | |
'no-else-return': ['error'], | ||
'no-global-strict': 0, | ||
'no-irregular-whitespace': ['error'], | ||
'no-prototype-builtins': 0, // Disable with exlint v6 update. | ||
'no-shadow': ['error'], | ||
'no-prototype-builtins': 0, // Disable with eslint v6 update. | ||
'no-shadow': 0, | ||
'@typescript-eslint/no-shadow': 'error', | ||
'no-underscore-dangle': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
|
@@ -97,5 +97,13 @@ module.exports = { | |
}, | ||
globals: { | ||
process: 'readonly', | ||
React: true, | ||
JSX: 'readonly', | ||
NodeJS: 'readonly', | ||
Subject: 'readonly', | ||
Diff: 'readonly', | ||
BlobPropertyBag: 'readonly', | ||
VoidFunction: 'readonly', | ||
RequestInit: 'readonly', | ||
}, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed since this option is not supported.
https://github.com/typescript-eslint/typescript-eslint/tree/v5.43.0/packages/parser