Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

67 changes: 67 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import js from '@eslint/js'
import * as tseslint from 'typescript-eslint'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

const ignores = [
'node_modules',
'dist',
'build',
'.content-collections',
'.tanstack-start',
'.netlify',
'public',
'convex/.temp',
]

export default [
{ ignores },
{
files: ['**/*.{js,jsx}'],
...js.configs.recommended,
},
...tseslint.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parserOptions: {
tsconfigRootDir: __dirname,
},
},
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '(^_)|(^__+$)|(^e$)|(^error$)',
varsIgnorePattern: '(^_)|(^__+$)|(^e$)|(^error$)',
caughtErrorsIgnorePattern: '(^_)|(^__+$)|(^e$)|(^error$)',
},
],
'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['**/*.{ts,tsx,js,jsx}'],
plugins: {
react,
'react-hooks': reactHooks,
'jsx-a11y': jsxA11y,
},
settings: {
react: { version: 'detect' },
},
rules: {
...reactHooks.configs.recommended.rules,
...jsxA11y.configs.recommended.rules,
},
},
]
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@tanstack/react-start": "1.139.12",
"@tanstack/react-table": "^8.21.3",
"@types/d3": "^7.4.3",
"@typescript-eslint/parser": "^7.2.0",
"@visx/hierarchy": "^2.10.0",
"@visx/responsive": "^2.10.0",
"@vitejs/plugin-react": "^4.3.3",
Expand All @@ -62,12 +61,11 @@
"date-fns": "^2.30.0",
"downshift": "^9.0.9",
"drizzle-orm": "^0.44.7",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"gray-matter": "^4.0.3",
"hast-util-is-element": "^3.0.0",
"hast-util-to-string": "^3.0.1",
"html-react-parser": "^5.1.10",
"import-meta-resolve": "^4.0.0",
"lru-cache": "^7.13.1",
"mermaid": "^11.11.0",
"postgres": "^3.4.7",
Expand Down Expand Up @@ -102,6 +100,7 @@
"devDependencies": {
"@content-collections/core": "^0.8.2",
"@content-collections/vite": "^0.2.4",
"@eslint/js": "^9.39.1",
"@shikijs/transformers": "^1.10.3",
"@types/node": "^24.3.0",
"@types/pg": "^8.15.6",
Expand All @@ -111,14 +110,17 @@
"autoprefixer": "^10.4.18",
"dotenv-cli": "^8.0.0",
"drizzle-kit": "^0.31.7",
"eslint": "^8.57.0",
"eslint-plugin-unicorn": "^49.0.0",
"eslint": "^9.39.1",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.35",
"prettier": "^3.7.4",
"tailwindcss": "^4.1.11",
"tsx": "^4.21.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.48.1",
"vite": "^7.0.0"
},
"engines": {
Expand Down
Loading
Loading