-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumping dependencies and linting files.
- Loading branch information
Showing
15 changed files
with
1,568 additions
and
4,343 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import eslintJS from '@eslint/js' | ||
import eslintTS from 'typescript-eslint' | ||
import pluginPrettier from 'eslint-plugin-prettier/recommended' | ||
import pluginSecurity from 'eslint-plugin-security' | ||
import pluginJest from 'eslint-plugin-jest' | ||
|
||
export default eslintTS.config( | ||
eslintJS.configs.recommended, | ||
...eslintTS.configs.strictTypeChecked, | ||
pluginJest.configs['flat/recommended'], | ||
pluginSecurity.configs.recommended, | ||
{ | ||
ignores: [ | ||
'jest.config.mjs', | ||
'eslint.config.mjs', | ||
'rollup.config.js', | ||
'coverage/*', | ||
'dist/*', | ||
'lib/*' | ||
] | ||
}, | ||
{ | ||
languageOptions: { | ||
sourceType: 'module', | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname | ||
} | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-namespace': 'warn', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'all', | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
varsIgnorePattern: '^_' | ||
} | ||
], | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
'@typescript-eslint/consistent-type-exports': 'error', | ||
'@typescript-eslint/restrict-template-expressions': 'off' | ||
} | ||
}, | ||
pluginPrettier | ||
) |
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.