Skip to content

Commit

Permalink
chore(eslint): add recommended plugins and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed May 21, 2024
1 parent 61530a8 commit e45697c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 49 deletions.
49 changes: 0 additions & 49 deletions eslint.config.cjs

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import pluginJs from '@eslint/js'
import eslintPlugin from '@typescript-eslint/eslint-plugin'
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort'
import globals from 'globals'
import tseslint from 'typescript-eslint'

export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: globals.browser
},
plugins: {
'@typescript-eslint': eslintPlugin,
'simple-import-sort': eslintPluginSimpleImportSort
},
rules: {
'no-undef': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error'
}
}
]

0 comments on commit e45697c

Please sign in to comment.