Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
remove eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Jan 11, 2024
1 parent 6ea3a40 commit a125817
Show file tree
Hide file tree
Showing 21 changed files with 102 additions and 2,209 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions eslint.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/apps/desktop/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"scripts": {
"dev": "electron-forge start",
"format": "echo TODO",
"lint": "echo TODO",
"make": "electron-forge make",
"package": "electron-forge package",
"publish": "electron-forge publish",
Expand Down Expand Up @@ -73,7 +72,6 @@
"@vitejs/plugin-react": "4.0.4",
"electron": "26.0.0",
"electron-playwright-helpers": "1.6.0",
"eslint-config-custom": "*",
"loglevel": "^1.8.1",
"react-devtools": "4.28.0",
"react-error-boundary": "4.0.11",
Expand Down
8 changes: 1 addition & 7 deletions frontend/apps/desktop/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// Helpers copied from https://github.com/kubeshop/monokle/blob/main/tests/electronHelpers.ts

/* eslint-disable no-await-in-loop */

/* eslint-disable no-restricted-syntax */
import {Page, _electron as electron} from '@playwright/test'
import * as ASAR from 'asar'
import * as fs from 'fs'
Expand All @@ -28,7 +24,7 @@ export async function startApp() {
// // wait for splash-screen to pass
// await electronApp.firstWindow();
// while (electronApp.windows().length === 2) {
// // eslint-disable-next-line no-await-in-loop

// await pause(100);
// }

Expand Down Expand Up @@ -98,7 +94,6 @@ export function findLatestBuild(): string {
]

const latestBuild = builds
// eslint-disable-next-line array-callback-return
.map((fileName) => {
// make sure it's a directory with "-" delimited platform in its name
const stats = fs.statSync(path.join(outDir, fileName))
Expand All @@ -115,7 +110,6 @@ export function findLatestBuild(): string {
})
// @ts-ignore
.sort((a, b) => b.time - a.time)
// eslint-disable-next-line array-callback-return
.map((file) => {
if (file) {
return file.name
Expand Down
4 changes: 0 additions & 4 deletions frontend/apps/site/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"next:build": "yarn next build",
"start": "yarn next start",
"serve": "NODE_ENV=production yarn next start --port 8151",
"lint": "echo TODO",
"format": "prettier \"**/*.{ts,tsx,md,mdx,json,js}\" --check --ignore-path ../../../.prettierignore",
"test": "echo 'SITE: NO TESTS';",
"with-env": "TAMAGUI_TARGET=web"
Expand Down Expand Up @@ -60,7 +59,6 @@
"@types/react-dom": "18.2.7",
"@types/react-native": "0.71.8",
"@types/unist": "2.0.6",
"eslint-config-custom": "*",
"expo-modules-core": "0.6.5",
"expo-screen-orientation": "4.3.0",
"next-transpile-modules": "10.0.1",
Expand Down
4 changes: 0 additions & 4 deletions frontend/packages/app/.eslintrc.js

This file was deleted.

34 changes: 15 additions & 19 deletions frontend/packages/app/components/contacts-prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,22 @@ function AddConnectionForm({
},
})

const connectInfo = useMemo(
() => {
if (!deviceId || !peerInfo.data?.addrs?.length) return null
return compressToEncodedURIComponent(
JSON.stringify({
a: peerInfo.data?.addrs.map((addr) => {
return addr.split('/p2p/').slice(0, -1).join('/p2p/')
}),
n: account.data?.profile?.alias,
d: deviceId,
const connectInfo = useMemo(() => {
if (!deviceId || !peerInfo.data?.addrs?.length) return null
return compressToEncodedURIComponent(
JSON.stringify({
a: peerInfo.data?.addrs.map((addr) => {
return addr.split('/p2p/').slice(0, -1).join('/p2p/')
}),
)
},
// @eslint-ignore-next-line
[
deviceId,
peerInfo.data?.addrs?.length, // explicitly using addrs length because the address list is being polled and frequently changes order, which does not affect connecivity
account.data?.profile?.alias,
],
)
n: account.data?.profile?.alias,
d: deviceId,
}),
)
}, [
deviceId,
peerInfo.data?.addrs?.length, // explicitly using addrs length because the address list is being polled and frequently changes order, which does not affect connecivity
account.data?.profile?.alias,
])
return (
<>
<DialogTitle>Add Connection</DialogTitle>
Expand Down
2 changes: 0 additions & 2 deletions frontend/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"*.css"
],
"scripts": {
"lint": "eslint .",
"format": "prettier \"**/*.{ts,tsx,md,mdx,json,js}\" --check --ignore-path ../../../.prettierignore",
"test": "echo 'APP: NO TESTS';",
"typecheck": "tsc --noEmit"
Expand Down Expand Up @@ -49,7 +48,6 @@
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"copy-text-to-clipboard": "3.1.0",
"eslint-config-custom": "*",
"happy-dom": "7.8.1",
"jsdom": "22.1.0",
"prettier": "3.0.2",
Expand Down
4 changes: 0 additions & 4 deletions frontend/packages/editor/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"main": "src/index.ts",
"scripts": {
"lint": "eslint .",
"format": "prettier \"**/*.{ts,tsx,md,mdx,json,js}\" --check --ignore-path ../../../.prettierignore",
"test": "echo 'EDITOR: NO TESTS';",
"typecheck": "tsc --noEmit"
Expand Down Expand Up @@ -67,7 +66,6 @@
"@types/prosemirror-dev-tools": "3.0.3",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"eslint-config-custom": "*",
"happy-dom": "7.8.1",
"jsdom": "22.1.0",
"prettier": "3.0.2",
Expand Down
12 changes: 0 additions & 12 deletions frontend/packages/eslint-config-custom/index.js

This file was deleted.

15 changes: 0 additions & 15 deletions frontend/packages/eslint-config-custom/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/packages/shared/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"main": "src/index.ts",
"scripts": {
"lint": "eslint .",
"format": "prettier \"**/*.{ts,tsx,md,mdx,json,js}\" --check --ignore-path ../../../.prettierignore",
"test": "vitest --run",
"test:w": "vitest",
Expand All @@ -14,7 +13,6 @@
"license": "ISC",
"devDependencies": {
"@mintter/prettier": "*",
"eslint-config-custom": "*",
"typescript": "5.1.6",
"vitest": "0.34.2"
},
Expand Down
3 changes: 0 additions & 3 deletions frontend/packages/ui/.eslintrc.js

This file was deleted.

5 changes: 1 addition & 4 deletions frontend/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
],
"scripts": {
"build": "tamagui-build ./src",
"lint": "echo NO LINT",
"lint:fix": "eslint . --fix",
"watch": "tamagui-build --watch",
"format": "prettier \"**/*.{ts,tsx,md,mdx,json,js}\" --check --ignore-path ../../../.prettierignore",
"clean": "tamagui-build clean",
Expand Down Expand Up @@ -45,7 +43,6 @@
},
"devDependencies": {
"@mintter/prettier": "*",
"@tamagui/build": "latest",
"eslint-config-custom": "*"
"@tamagui/build": "latest"
}
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"scripts": {
"test": "turbo test --continue",
"validate": "yarn lint && yarn format",
"validate:fix": "yarn lint:fix && yarn format:fix",
"validate": "yarn format",
"validate:fix": "yarn format:fix",
"site": "yarn build && cd frontend/apps/site && yarn dev",
"site:prod": "yarn build && yarn workspace @mintter/site build",
"site:serve": "yarn workspace @mintter/site serve",
Expand All @@ -26,7 +26,6 @@
"check-deps": "check-dependency-version-consistency .",
"docs": "yarn workspace @mintter/docs start",
"upgrade:tamagui": "yarn up '*tamagui*'@latest '@tamagui/*'@latest",
"lint": "yarn turbo lint",
"generate": "yarn turbo gen",
"ui:build": "yarn workspace @mintter/ui generate && yarn workspace @mintter/ui build",
"gen": "yarn generate",
Expand All @@ -50,7 +49,6 @@
"check-dependency-version-consistency": "4.1.0",
"cross-env": "7.0.3",
"electron-squirrel-startup": "1.0.0",
"eslint": "8.47.0",
"graphql-codegen": "0.4.0",
"node-gyp": "9.3.1",
"prettier": "3.0.2",
Expand Down
3 changes: 0 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "out/**"]
},
"lint": {
"ignore": ["./frontend/packages/ui/dist/**"]
},
"format": {
"outputs": ["node_modules/.cache/.prettiercache"],
"outputMode": "new-only"
Expand Down
Loading

0 comments on commit a125817

Please sign in to comment.