chore: add linting checks via turbo

This commit is contained in:
Amin Yahyaabadi 2024-08-15 17:01:33 -07:00
parent 4facf05dc0
commit 382285ae64
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
24 changed files with 65 additions and 31 deletions

2
dist/actions/hdi.23cd1c99.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/actions/hdi.23cd1c99.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/legacy/hdi.bbd33e35.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/legacy/hdi.bbd33e35.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/modern/hdi.23cd1c99.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/modern/hdi.23cd1c99.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@
],
"scripts": {
"build": "turbo build && pnpm run build.root",
"build.root": "run-p lint.tsc build.root.parcel copy.matchers && run-s build.root.babel build.root.modern",
"build.root": "run-p lint.root.tsc build.root.parcel copy.matchers && run-s build.root.babel build.root.modern",
"build.root.parcel": "cross-env NODE_ENV=production parcel build",
"build.root.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
"build.root.modern": "shx cp -r ./dist/actions/* ./dist/modern",
@ -40,16 +40,17 @@
"dev": "cross-env NODE_ENV=development parcel watch",
"docs": "shx rm -rf packages/*/README.md && pnpm -r exec readme --path ../../dev/readme/template.md -y && pnpm -r exec ts-readme",
"format": "run-s lint.dprint",
"lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.dprint lint.tsc lint.biome",
"lint": "turbo lint && pnpm run lint.root",
"lint.root": "run-p --aggregate-output --continue-on-error lint.cspell lint.root.eslint lint.dprint lint.root.tsc lint.biome",
"lint.cspell": "cspell lint --no-progress --show-suggestions --cache --cache-location ./.cache/cspell/.cspellcache",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
"lint.root.eslint": "eslint ./{src,dev}/**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
"lint.biome": "biome check --write --unsafe",
"lint.dprint": "dprint fmt",
"lint.tsc": "tsc --noEmit --pretty",
"lint.root.tsc": "tsc --noEmit --pretty",
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs",
"prepublishOnly": "rm ./dist/tsconfig.tsbuildinfo",
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.dprint lint.tsc test.lint.biome",
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.root.eslint test.lint.dprint lint.root.tsc test.lint.biome",
"test.lint.root.eslint": "eslint ./{src,dev}/**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"test.lint.biome": "biome check",
"test.lint.dprint": "dprint check",
"test": "jest --runInBand --forceExit --coverage",
@ -88,7 +89,7 @@
"escape-quotes": "^1.0.2",
"escape-string-regexp": "^5.0.0",
"eslint": "^8.57.0",
"eslint-config-atomic": "^1.22.0",
"eslint-config-atomic": "^1.22.1",
"exec-powershell": "workspace:*",
"execa": "^7.2.0",
"is-url-online": "^1.5.0",

View File

@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}

View File

@ -9,7 +9,8 @@
"source": "./src/index.ts",
"scripts": {
"build": "tsc --pretty",
"lint": "tsc --noEmit --pretty"
"lint.tsc": "tsc --noEmit --pretty",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix"
},
"dependencies": {
"@actions/core": "^1.10.1",

View File

@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}

View File

@ -9,7 +9,8 @@
"source": "./src/index.ts",
"scripts": {
"build": "tsc --pretty",
"lint": "tsc --noEmit --pretty"
"lint.tsc": "tsc --noEmit --pretty",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix"
},
"dependencies": {
"execa": "<8",

View File

@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}

View File

@ -9,7 +9,8 @@
"source": "./src/index.ts",
"scripts": {
"build": "tsc --pretty",
"lint": "tsc --noEmit --pretty"
"lint.tsc": "tsc --noEmit --pretty",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix"
},
"dependencies": {
"@actions/core": "^1.10.1",

View File

@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}

View File

@ -9,7 +9,8 @@
"source": "./src/index.ts",
"scripts": {
"build": "tsc --pretty",
"lint": "tsc --noEmit --pretty"
"lint.tsc": "tsc --noEmit --pretty",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix"
},
"dependencies": {
"admina": "1.0.1"

View File

@ -105,8 +105,8 @@ importers:
specifier: ^8.57.0
version: 8.57.0
eslint-config-atomic:
specifier: ^1.22.0
version: 1.22.0(eslint@8.57.0)
specifier: ^1.22.1
version: 1.22.1(eslint@8.57.0)
exec-powershell:
specifier: workspace:*
version: link:packages/exec-powershell
@ -2696,8 +2696,8 @@ packages:
eslint-plugin-react: ^7.21.5
eslint-plugin-react-hooks: ^4 || ^3 || ^2.3.0 || ^1.7.0
eslint-config-atomic@1.22.0:
resolution: {integrity: sha512-WizguluLCqhvX3fegGBjfx+ITq84DU7Zz4io3AwpYSyf4RApZMuAECvEPiA41UEf1/HFYDcTLWXHkfB0C+9kwQ==}
eslint-config-atomic@1.22.1:
resolution: {integrity: sha512-SM7IjUMWZnwa3q9xSD/p3oHF630xCsIH3vWP4Yyxgw5Pqf2Ur3YgH4RtKvcC3zt5BKVzMeCq+t/wsJmW2c5r1Q==}
peerDependencies:
eslint: ^8 || ^7 || ^6
@ -8417,7 +8417,7 @@ snapshots:
object.entries: 1.1.8
optional: true
eslint-config-atomic@1.22.0(eslint@8.57.0):
eslint-config-atomic@1.22.1(eslint@8.57.0):
dependencies:
'@babel/core': 7.25.2
'@babel/eslint-parser': 7.25.1(@babel/core@7.25.2)(eslint@8.57.0)
@ -8618,7 +8618,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
has: 1.0.4
jsx-ast-utils: 2.4.1
jsx-ast-utils: 3.3.5
minimatch: 3.1.2
object.entries: 1.1.8
object.fromentries: 2.0.8

View File

@ -34,10 +34,7 @@
"compileOnSave": false,
"include": [
"./src",
"dev/scripts",
"packages/untildify-user/untildify.ts",
"dev/docker/ci/docker-ci.mjs",
"./jest.config.ts",
"packages/os-env/src/escape-quotes.d.ts"
"./dev/",
"./*.ts"
]
}

View File

@ -6,6 +6,17 @@
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": ["dist/**"]
},
"lint.tsc": {
"dependsOn": ["^lint.tsc"],
"inputs": ["$TURBO_DEFAULT$", ".env*"]
},
"lint.eslint": {
"dependsOn": ["^lint.eslint"],
"inputs": ["$TURBO_DEFAULT$", ".env*"]
},
"lint": {
"dependsOn": ["lint.tsc", "lint.eslint"]
}
},
"ui": "stream"