-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(api): remove supporting old runtime versions (#1584)
- Loading branch information
1 parent
aa9b9e4
commit 5dc89e3
Showing
27 changed files
with
1,786 additions
and
1,496 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
|
||
export default { | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
parser: tsParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
semi: ['error', 'always'], | ||
'object-curly-spacing': ['error', 'always'], | ||
indent: [ | ||
'warn', | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
flatTernaryExpressions: false, | ||
offsetTernaryExpressions: true, | ||
}, | ||
], | ||
'linebreak-style': ['error', 'unix'], | ||
quotes: [ | ||
'warn', | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
}, | ||
], | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'no-case-declarations': 0, | ||
'eol-last': 'error', | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 120, | ||
tabWidth: 2, | ||
ignoreStrings: true, | ||
ignoreComments: true, | ||
}, | ||
], | ||
'sort-imports': [ | ||
'error', | ||
{ | ||
ignoreCase: false, | ||
ignoreDeclarationSort: false, | ||
ignoreMemberSort: false, | ||
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], | ||
allowSeparatedGroups: true, | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.