-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ESLint configuration and update TypeScript target version
- Loading branch information
1 parent
309cab9
commit 5174393
Showing
9 changed files
with
2,425 additions
and
1,369 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
tsconfig.json | ||
/test | ||
.eslintrc.json | ||
.github |
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,43 @@ | ||
/** | ||
* @type {import('eslint').Linter.FlatConfig[]} | ||
*/ | ||
import eslint from '@eslint/js'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
import tslint from 'typescript-eslint'; | ||
|
||
export default [ | ||
eslint.configs.recommended, | ||
...tslint.configs.recommended, | ||
{}, | ||
{ | ||
plugins: { import: importPlugin }, | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': 0, | ||
'no-empty-pattern': 0, | ||
'no-empty': 0, | ||
'import/order': [ | ||
'warn', | ||
{ | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
['parent', 'sibling'], | ||
'object', | ||
'type', | ||
'index', | ||
], | ||
pathGroupsExcludedImportTypes: ['builtin'], | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
]; |
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.