Skip to content

Commit

Permalink
Improve eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Mar 9, 2024
1 parent e714425 commit b9ab34b
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 1,827 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
dist
node_modules
packages/create-r2-explorer/*
packages/github-action/*
packages/worker/bin/*
packages/worker/config/*
packages/dashboard/quasar.config.js
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"typescript",
"prettier"
],
"ignorePatterns": ["**/test/*.js","**/test/*.ts","**/test/**/*.js","**/test/**/*.ts", "packages/worker-constellation-entry/src/ai/tasks/data/validators.js"],
"ignorePatterns": [],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ packages/worker/dev/.wrangler
packages/github-action/wrangler.toml
packages/github-action/src

packages/dashboard-v2/.env
packages/dashboard/.env
packages/dashboard/.quasar
.dev.vars
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
#npm run lint
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
git-checks=false
shamefully-hoist=true
auto-install-peers=true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"publish-npm": "pnpm run --filter worker publish"
},
"devDependencies": {
"esbuild": "0.17.19",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-typescript": "^3.0.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"typescript": "^4.7.4"
Expand Down
10 changes: 4 additions & 6 deletions packages/create-r2-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@
"which-pm-runs": "^1.1.0",
"wrangler": "*",
"yargs": "^17.7.1",
"yarn": "^1.22.19"
"yarn": "^1.22.19",
"@clack/core": "^0.3.4",
"semver": "^7.6.0",
"undici": "^6.7.1"
},
"engines": {
"node": ">=16.13.0"
},
"dependencies": {
"@clack/core": "^0.3.4",
"semver": "^7.6.0",
"undici": "^6.7.1"
}
}
9 changes: 0 additions & 9 deletions packages/dashboard/.editorconfig

This file was deleted.

7 changes: 0 additions & 7 deletions packages/dashboard/.eslintignore

This file was deleted.

66 changes: 0 additions & 66 deletions packages/dashboard/.eslintrc.cjs

This file was deleted.

33 changes: 0 additions & 33 deletions packages/dashboard/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions packages/dashboard/.npmrc

This file was deleted.

6 changes: 1 addition & 5 deletions packages/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
"@quasar/app-vite": "^1.8.0",
"autoprefixer": "^10.4.2",
"dotenv": "^16.3.1",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-vue": "^9.0.0",
"postcss": "^8.4.14",
"prettier": "^2.5.1"
"postcss": "^8.4.14"
},
"engines": {
"node": "^20 || ^18 || ^16 || ^14.19",
Expand Down
5 changes: 0 additions & 5 deletions packages/worker/.eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions packages/worker/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/worker/.prettierrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion packages/worker/dev/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const baseConfig = {
readonly: false,
cors: true,
showHiddenFiles: true,
dashboardUrl: "https://dev.r2-explorer-dashboard.pages.dev/"
dashboardUrl: "https://dashboard-v1.r2-explorer-dashboard.pages.dev/",
cacheAssets: false,
};

export default {
Expand Down
Loading

0 comments on commit b9ab34b

Please sign in to comment.