Skip to content

Commit

Permalink
chore: use new eslint version and config
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Apr 8, 2024
1 parent 158c8ae commit 1a6fb3d
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 202 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const globals = require('globals')
const js = require("@eslint/js")

module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node
}
},
rules: {
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
}
],
"semi": [
"error",
"never"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
]
}
}
]
31 changes: 0 additions & 31 deletions .eslintrc.json

This file was deleted.

0 comments on commit 1a6fb3d

Please sign in to comment.