Skip to content

Commit

Permalink
move some deps, switch to new eslint format
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Dec 20, 2024
1 parent b978c59 commit f7f0db8
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 40 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...compat.extends('next/core-web-vitals', 'next/typescript'),
{
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
},
],

'@typescript-eslint/no-empty-function': ['warn', {}],

'@typescript-eslint/no-empty-interface': [
'error',
{
allowSingleExtends: false,
},
],

'@typescript-eslint/no-empty-object-type': ['warn'],
curly: ['warn', 'all'],

'@typescript-eslint/no-unused-expressions': [
'error',
{
allowTernary: true,
enforceForJSX: true,
},
],
},
},
];
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
"@storybook/testing-react": "^2.0.1",
"@tanstack/react-query": "^4.29.17",
"@tanstack/react-table": "^8.9.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react-hooks": "^7.0.2",
"@types/diff": "^5.0.3",
"@xstate/fsm": "^2.0.0",
"@xstate/inspect": "^0.7.1",
"@xstate/react": "^3.2.2",
Expand Down Expand Up @@ -108,6 +105,8 @@
},
"devDependencies": {
"@chakra-ui/storybook-addon": "^5.0.1",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@faker-js/faker": "^6.0.0",
"@mswjs/interceptors": "^0.19.0",
"@playwright/browser-chromium": "^1.39.0",
Expand All @@ -126,15 +125,18 @@
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^14.4.3",
"@total-typescript/ts-reset": "^0.4.2",
"@types/cookie-parser": "^1.4.3",
"@types/cookie-session": "^2.0.44",
"@types/d3": "^7.4.0",
"@types/d3-cloud": "^1.2.5",
"@types/d3-scale": "^4.0.3",
"@types/diff": "^5.0.3",
"@types/dompurify": "^2.3.3",
"@types/escape-html": "^1.0.2",
"@types/eslint__eslintrc": "^2.1.2",
"@types/file-saver": "^2.0.5",
"@types/he": "^1.1.2",
"@types/http-proxy": "^1.17.15",
Expand Down
64 changes: 47 additions & 17 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 f7f0db8

Please sign in to comment.