Skip to content

Commit

Permalink
fix(style): migrate eslint config to v9
Browse files Browse the repository at this point in the history
MrExplode committed May 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f2ff874 commit 6039c3e
Showing 4 changed files with 39 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.cjs

This file was deleted.

29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import js from '@eslint/js'
import ts from 'typescript-eslint'
import prettier from 'eslint-config-prettier'
import globals from 'globals'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
{
ignores: ['dist/']
}
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
"@types/jquery": "^3.5.30",
"eslint": "^9.3.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.3.0",
"jquery": "^3.7.1",
"prettier": "3.2.5",
"totp-generator": "^1.0.0",
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6039c3e

Please sign in to comment.