Skip to content

Commit

Permalink
Add config eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsi15 committed Dec 7, 2024
1 parent cb91f94 commit f7cf0b9
Show file tree
Hide file tree
Showing 4 changed files with 2,842 additions and 5,192 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import globals from 'globals'

export default [
{
ignores: ['**/test/**'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
globals: {
...globals.browser,
...globals.node,
myCustomGlobal: 'readonly',
},
},
rules: {
'no-unused-vars': 'warn',
'no-undef': 'error',
},
},
]
Loading

0 comments on commit f7cf0b9

Please sign in to comment.