Skip to content

Commit

Permalink
Bumping dependencies and linting files.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Jul 5, 2024
1 parent 111b877 commit 42e307f
Show file tree
Hide file tree
Showing 15 changed files with 1,568 additions and 4,343 deletions.
100 changes: 0 additions & 100 deletions .eslintrc.json

This file was deleted.

47 changes: 47 additions & 0 deletions eslint.config.mjs
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
)
3 changes: 0 additions & 3 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
],
"testEnvironment": "node",
"transform": {},
"setupFiles": [
"./test/jest.setup-file.mjs"
],
"collectCoverage": false,
"verbose": true
}
Loading

0 comments on commit 42e307f

Please sign in to comment.