Skip to content

Commit

Permalink
Use different eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-waarneming-nl committed Oct 7, 2024
1 parent fa37c21 commit 1d00d31
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import pluginJs from '@eslint/js'
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default [
{
files: ['**/*.{js,mjs,cjs,ts}'],
export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.recommended, {
rules: {
'no-console': 'warn',
curly: ['error', 'multi-line'],
'prefer-destructuring': ['error'],
},
pluginJs.configs.recommended,
{
rules: {
'no-console': 'warn',
curly: ['error', 'multi-line'],
'prefer-destructuring': ['error'],
},
},
...tseslint.configs.recommended,
]
})

0 comments on commit 1d00d31

Please sign in to comment.