Skip to content

Commit

Permalink
Upgraded eslint process from vite temp.
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl committed Sep 2, 2024
1 parent 8169301 commit f3e2cc1
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 394 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.cjs

This file was deleted.

8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ updates:
directory: "/"
schedule:
interval: "monthly"
ignore:
# Issues with Vite
- dependency-name: "eslint"
versions: ["9"]
- dependency-name: "@typescript-eslint/eslint-plugin"
versions: ["8"]
- dependency-name: "@typescript-eslint/parser"
versions: ["8"]
groups:
dev-dependencies:
patterns:
Expand Down
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
Loading

0 comments on commit f3e2cc1

Please sign in to comment.