Skip to content

Commit

Permalink
chore: New shared eslint strategy importing from a base in root
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoguichard committed May 3, 2024
1 parent f428dd5 commit 7fa5efd
Show file tree
Hide file tree
Showing 22 changed files with 564 additions and 537 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist
tsc
*.css
*.html
.eslintrc
6 changes: 6 additions & 0 deletions apps/react-router/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path')

module.exports = {
extends: path.resolve(__dirname, '../../.eslintrc.base.js'),
rules: {},
}
1 change: 1 addition & 0 deletions apps/react-router/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist
tsc
*.css
*.html
.eslintrc
4 changes: 1 addition & 3 deletions apps/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint . --ext .tsx,.ts --max-warnings=0",
"lint": "eslint . --max-warnings=0",
"prelint": "prettier --check .",
"tsc": "tsc"
},
Expand All @@ -24,8 +24,6 @@
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^9.1.1",
"eslint-config-custom": "*",
"typescript": "~5.4.5",
"vite": "^3.2.0"
}
Expand Down
6 changes: 6 additions & 0 deletions apps/remix-1-14/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path')

module.exports = {
extends: path.resolve(__dirname, '../../.eslintrc.base.js'),
rules: {},
}
4 changes: 2 additions & 2 deletions apps/remix-1-14/app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { makeDomainFunction } from 'domain-functions'
import type { ActionFunctionArgs } from 'react-router-dom'
import type { ActionArgs } from '@remix-run/node'
import { z } from 'zod'
import { formAction } from '../formAction'
import { Form } from '../ui/form'
Expand All @@ -11,7 +11,7 @@ const schema = z.object({

const mutation = makeDomainFunction(schema)(async (values) => values)

export function action({ request }: ActionFunctionArgs) {
export function action({ request }: ActionArgs) {
return formAction({
request,
schema,
Expand Down
4 changes: 1 addition & 3 deletions apps/remix-1-14/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "remix build",
"dev": "PORT=3001 remix dev",
"start": "cross-env NODE_ENV=production netlify dev",
"lint": "eslint . --ext .tsx,.ts --max-warnings=0",
"lint": "eslint . --max-warnings=0",
"prelint": "prettier --check .",
"tsc": "tsc"
},
Expand All @@ -28,8 +28,6 @@
"@remix-run/serve": "1.14.1",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"eslint": "^9.1.1",
"eslint-config-custom": "*",
"typescript": "~5.4.5"
},
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions apps/remix-1-15/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path')

module.exports = {
extends: path.resolve(__dirname, '../../.eslintrc.base.js'),
rules: {},
}
4 changes: 1 addition & 3 deletions apps/remix-1-15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "remix build",
"dev": "PORT=3002 remix dev",
"start": "remix-serve build",
"lint": "eslint . --ext .tsx,.ts --max-warnings=0",
"lint": "eslint . --max-warnings=0",
"prelint": "prettier --check .",
"tsc": "tsc"
},
Expand All @@ -26,8 +26,6 @@
"@remix-run/eslint-config": "2.9.1",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"eslint": "^9.1.1",
"eslint-config-custom": "*",
"typescript": "~5.4.5"
},
"engines": {
Expand Down
6 changes: 6 additions & 0 deletions apps/web/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const path = require('path')

module.exports = {
extends: path.resolve(__dirname, '../../.eslintrc.base.js'),
rules: {},
}
8 changes: 3 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev:server": "cross-env NODE_ENV=development netlify dev",
"playwright:ci:install": "playwright install chromium",
"start": "cross-env NODE_ENV=production netlify dev",
"lint": "eslint . --ext .tsx,.ts --max-warnings=0",
"lint": "eslint . --max-warnings=0",
"prelint": "prettier --check .",
"tsc": "tsc",
"test": "playwright test",
Expand Down Expand Up @@ -53,11 +53,9 @@
"autoprefixer": "^10.4.2",
"concurrently": "^7.0.0",
"esbuild": "^0.14.49",
"eslint": "^9.1.1",
"eslint-config-custom": "*",
"postcss": "^8.4.6",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.4.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"tailwind-scrollbar": "^1.3.1",
"typescript": "~5.4.5"
},
Expand Down
Loading

0 comments on commit 7fa5efd

Please sign in to comment.