Skip to content

Commit

Permalink
feat: Update dependencies and fix npm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-garcia committed Aug 23, 2024
1 parent 88034ca commit ad1403a
Show file tree
Hide file tree
Showing 26 changed files with 753 additions and 742 deletions.
56 changes: 54 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,65 @@
module.exports = {
// The 'extends' array specifies the base configurations and plugin configurations to build upon
extends: [
// Use ESLint's recommended rules as a starting point
'eslint:recommended',
// Use recommended TypeScript-specific rules
'plugin:@typescript-eslint/recommended',
// Use Next.js specific rules, including Core Web Vitals
'next/core-web-vitals',
// Use recommended accessibility rules for JSX
'plugin:jsx-a11y/recommended',
"plugin:tailwindcss/recommended",
// Use recommended rules for Tailwind CSS
'plugin:tailwindcss/recommended',
// Use Jest-specific recommended rules
'plugin:jest/recommended',
// Use recommended rules for Testing Library with React
'plugin:testing-library/react',
// Use Playwright-specific recommended rules
'plugin:playwright/playwright-test',
'plugin:prettier/recommended',
// Use import plugin's rules for detecting errors
'plugin:import/errors',
// Use import plugin's rules for warnings
'plugin:import/warnings',
// Use import plugin for TypeScript support
'plugin:import/typescript',
],

// The 'plugins' array lists additional ESLint plugins to use
plugins: ['import'],

// The 'rules' object allows custom configuration of rules
rules: {
// Enforce import order
'import/order': [
'error',
{
// Define the order of import groups
groups: [
'builtin', // Node.js built-in modules
'external', // npm packages
'internal', // Internal modules
'parent', // Parent directory imports
'sibling', // Same directory imports
'index', // Index imports
'object', // Object imports
'type', // Type imports
],
// Add new lines between import groups
'newlines-between': 'always',
// Sort imports alphabetically within each group
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
// Enforce no duplicate imports
'import/no-duplicates': 'error',
},

// The 'settings' object is used to configure plugins
settings: {
'import/resolver': {
// Use TypeScript resolver for import plugin
typescript: {},
},
},
}
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/dependencies_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
with:
node-version: 18

- name: Update dependencies 🤖
run: npx npm-check-updates -u --reject "/eslint|@typescript-eslint|@next\/eslint-plugin-next/"

- name: Setup pnpm 🤖
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Update dependencies 🤖
run: pnpm dlx npm-check-updates -u --target minor"

- name: Install dependencies 🤖
run: pnpm install --no-frozen-lockfile

Expand Down
43 changes: 0 additions & 43 deletions eslint.config.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-require-imports */
const nextJest = require('next/jest')

const createJestConfig = nextJest({
Expand Down
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: { typedRoutes: true },
images: {
domains: [],
},
Expand Down
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,54 +21,55 @@
"lint:js": "eslint src/**/*.{ts,tsx}"
},
"dependencies": {
"@tanstack/react-query": "^5.51.5",
"@tanstack/react-query-devtools": "^5.51.5",
"@tanstack/react-query": "^5.51.21",
"@tanstack/react-query-devtools": "^5.51.21",
"client-only": "^0.0.1",
"clsx": "^2.1.1",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-icons": "^5.2.1",
"server-only": "^0.0.1",
"winston": "^3.13.1"
"server-only": "^0.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/core": "^7.25.2",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.8.0",
"@next/eslint-plugin-next": "^14.2.5",
"@playwright/test": "^1.45.2",
"@testing-library/dom": "^10.3.2",
"@testing-library/jest-dom": "^6.4.6",
"@playwright/test": "^1.45.3",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/node": "20.14.11",
"@types/node": "22.1.0",
"@types/react": "18.3.3",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"autoprefixer": "^10.4.19",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.1.3",
"concurrently": "^8.2.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "8.57.0",
"eslint-config-next": "14.2.5",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jest": "^28.7.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-tailwindcss": "^3.17.4",
"eslint-plugin-testing-library": "^6.2.2",
"husky": "^9.1.0",
"husky": "^9.1.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.7",
"msw": "^2.3.1",
"lint-staged": "^15.2.8",
"msw": "^2.3.5",
"plop": "^4.0.1",
"postcss": "^8.4.39",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.6",
"typescript": "5.3.3",
"tailwindcss": "^3.4.7",
"typescript": "5.5.4",
"webpack": "^5.93.0"
},
"msw": {
Expand Down
3 changes: 2 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { PlaywrightTestConfig } from '@playwright/test'
import { devices } from '@playwright/test'

import type { PlaywrightTestConfig } from '@playwright/test'

const config: PlaywrightTestConfig = {
testDir: './e2e',
timeout: 30 * 1000,
Expand Down
Loading

0 comments on commit ad1403a

Please sign in to comment.