Skip to content

Commit 0264ac2

Browse files
committed
fix(deps): migrate typescript-eslint configuration
Align the parser with eslint-plugin v8 and replace rules removed or renamed across the v6-v8 migration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b83224c commit 0264ac2

6 files changed

Lines changed: 80 additions & 427 deletions

File tree

‎.eslintrc.js‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
'default': 'array'
4343
}
4444
],
45-
'@typescript-eslint/ban-types': [
45+
'@typescript-eslint/no-restricted-types': [
4646
'error',
4747
{
4848
'types': {
@@ -78,7 +78,6 @@ module.exports = {
7878
'allowTypedFunctionExpressions': false
7979
}
8080
],
81-
'@typescript-eslint/indent': 'error',
8281
'@typescript-eslint/naming-convention': [
8382
'off',
8483
{
@@ -105,17 +104,10 @@ module.exports = {
105104
],
106105
'@typescript-eslint/no-unused-expressions': 'error',
107106
'@typescript-eslint/no-use-before-define': 'off',
108-
'@typescript-eslint/no-var-requires': 'error',
107+
'@typescript-eslint/no-require-imports': 'error',
109108
'@typescript-eslint/prefer-for-of': 'error',
110109
'@typescript-eslint/prefer-function-type': 'error',
111110
'@typescript-eslint/prefer-namespace-keyword': 'error',
112-
'@typescript-eslint/quotes': [
113-
'error',
114-
'single',
115-
{
116-
'avoidEscape': true
117-
}
118-
],
119111
'@typescript-eslint/triple-slash-reference': [
120112
'error',
121113
{
@@ -184,7 +176,13 @@ module.exports = {
184176
'never'
185177
],
186178
'prefer-const': 'error',
187-
'quotes': 'off',
179+
'quotes': [
180+
'error',
181+
'single',
182+
{
183+
'avoidEscape': true
184+
}
185+
],
188186
'radix': 'error',
189187
'spaced-comment': [
190188
'error',

0 commit comments

Comments
 (0)