Skip to content

Commit

Permalink
fix: make linter work from root workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon authored and Tommytrg committed Apr 6, 2024
1 parent eceead1 commit 611bd05
Show file tree
Hide file tree
Showing 15 changed files with 42,744 additions and 7,168 deletions.
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,35 @@
"packages/*"
],
"scripts": {
"bootstrap": "yarn lerna bootstrap",
"build": "yarn lerna run build --stream --concurrency 1",
"test": "yarn lerna run test --stream ",
"lint": "yarn lerna run lint --stream --concurrency 1",
"lint:check": "yarn lerna run lint:check --stream --concurrency 1",
"clean": "yarn lerna run clean --concurrency 4",
"bootstrap": "pnpm lerna bootstrap",
"build": "pnpm lerna run build --stream --concurrency 1",
"test": "pnpm lerna run test --stream ",
"lint": "pnpm lerna run lint --stream --concurrency 1",
"lintfix": "pnpm lerna run lintfix --stream --concurrency 1",
"clean": "pnpm lerna run clean --concurrency 4",
"prepare": "lerna run prepare",
"docker:build": "lerna run docker:build"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@commitlint/config-lerna-scopes": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"commitlint": "^11.0.0",
"lerna": "^3.22.1",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"prettier": "^3.1.1",
"eslint-plugin-vue": "^9.22.0",
"lerna": "^3.22.1",
"migrate-mongo": "^9.0.0",
"stylelint": "^13.9.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0"
"prettier": "^3.1.1",
"stylelint": "^16.2.1",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^36.0.0"
},
"volta": {
"node": "18.17.0",
"node": "21.6.1",
"yarn": "1.22.19"
}
}
23 changes: 23 additions & 0 deletions packages/api/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-essential"
],
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "vue"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-async-promise-executor": "off"
}
}
6 changes: 6 additions & 0 deletions packages/api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
build
src/generated
node_modules
dist
**/*.sh
codegen.yml
dist
dist/**
**/generated/**
4 changes: 3 additions & 1 deletion packages/api/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
**/*.sh
**/*.yml
dist/
codegen.yml
dist
dist/**
**/generated/**
4 changes: 4 additions & 0 deletions packages/api/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
7 changes: 4 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"build": "tsc -p tsconfig.build.json",
"codegen": "graphql-codegen --config ./codegen.yml",
"lint": "prettier-standard --format",
"lint:check": "prettier-standard --check",
"lint:js": "eslint --ext \".ts\" --ignore-path .gitignore .",
"lint:prettier": "prettier --check --ignore-path .gitignore .",
"lint": "pnpm lint:js && pnpm lint:prettier",
"lintfix": "prettier --write --list-different . && pnpm lint:js --fix",
"dev": "nodemon",
"start": "node dist/index.js",
"test": "jest --runInBand",
Expand All @@ -25,7 +27,6 @@
"@types/node": "18.11.9",
"husky": "^8.0.3",
"nodemon": "^2.0.22",
"prettier-standard": "^16.4.1",
"ts-jest": "29.1.0",
"ts-node": "10.9.1",
"typescript": "^5.0.4"
Expand Down
Loading

0 comments on commit 611bd05

Please sign in to comment.