mirror of https://github.com/aminya/setup-cpp
chore: add linting checks via turbo
This commit is contained in:
parent
4facf05dc0
commit
382285ae64
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
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
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
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
15
package.json
15
package.json
|
@ -28,7 +28,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo build && pnpm run build.root",
|
"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.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.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",
|
"build.root.modern": "shx cp -r ./dist/actions/* ./dist/modern",
|
||||||
|
@ -40,16 +40,17 @@
|
||||||
"dev": "cross-env NODE_ENV=development parcel watch",
|
"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",
|
"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",
|
"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.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.biome": "biome check --write --unsafe",
|
||||||
"lint.dprint": "dprint fmt",
|
"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",
|
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs",
|
||||||
"prepublishOnly": "rm ./dist/tsconfig.tsbuildinfo",
|
"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": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.root.eslint test.lint.dprint lint.root.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.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.biome": "biome check",
|
||||||
"test.lint.dprint": "dprint check",
|
"test.lint.dprint": "dprint check",
|
||||||
"test": "jest --runInBand --forceExit --coverage",
|
"test": "jest --runInBand --forceExit --coverage",
|
||||||
|
@ -88,7 +89,7 @@
|
||||||
"escape-quotes": "^1.0.2",
|
"escape-quotes": "^1.0.2",
|
||||||
"escape-string-regexp": "^5.0.0",
|
"escape-string-regexp": "^5.0.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-atomic": "^1.22.0",
|
"eslint-config-atomic": "^1.22.1",
|
||||||
"exec-powershell": "workspace:*",
|
"exec-powershell": "workspace:*",
|
||||||
"execa": "^7.2.0",
|
"execa": "^7.2.0",
|
||||||
"is-url-online": "^1.5.0",
|
"is-url-online": "^1.5.0",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../../.eslintrc.json"
|
||||||
|
}
|
|
@ -9,7 +9,8 @@
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --pretty",
|
"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": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../../.eslintrc.json"
|
||||||
|
}
|
|
@ -9,7 +9,8 @@
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --pretty",
|
"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": {
|
"dependencies": {
|
||||||
"execa": "<8",
|
"execa": "<8",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../../.eslintrc.json"
|
||||||
|
}
|
|
@ -9,7 +9,8 @@
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --pretty",
|
"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": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../../.eslintrc.json"
|
||||||
|
}
|
|
@ -9,7 +9,8 @@
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --pretty",
|
"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": {
|
"dependencies": {
|
||||||
"admina": "1.0.1"
|
"admina": "1.0.1"
|
||||||
|
|
|
@ -105,8 +105,8 @@ importers:
|
||||||
specifier: ^8.57.0
|
specifier: ^8.57.0
|
||||||
version: 8.57.0
|
version: 8.57.0
|
||||||
eslint-config-atomic:
|
eslint-config-atomic:
|
||||||
specifier: ^1.22.0
|
specifier: ^1.22.1
|
||||||
version: 1.22.0(eslint@8.57.0)
|
version: 1.22.1(eslint@8.57.0)
|
||||||
exec-powershell:
|
exec-powershell:
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:packages/exec-powershell
|
version: link:packages/exec-powershell
|
||||||
|
@ -2696,8 +2696,8 @@ packages:
|
||||||
eslint-plugin-react: ^7.21.5
|
eslint-plugin-react: ^7.21.5
|
||||||
eslint-plugin-react-hooks: ^4 || ^3 || ^2.3.0 || ^1.7.0
|
eslint-plugin-react-hooks: ^4 || ^3 || ^2.3.0 || ^1.7.0
|
||||||
|
|
||||||
eslint-config-atomic@1.22.0:
|
eslint-config-atomic@1.22.1:
|
||||||
resolution: {integrity: sha512-WizguluLCqhvX3fegGBjfx+ITq84DU7Zz4io3AwpYSyf4RApZMuAECvEPiA41UEf1/HFYDcTLWXHkfB0C+9kwQ==}
|
resolution: {integrity: sha512-SM7IjUMWZnwa3q9xSD/p3oHF630xCsIH3vWP4Yyxgw5Pqf2Ur3YgH4RtKvcC3zt5BKVzMeCq+t/wsJmW2c5r1Q==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^8 || ^7 || ^6
|
eslint: ^8 || ^7 || ^6
|
||||||
|
|
||||||
|
@ -8417,7 +8417,7 @@ snapshots:
|
||||||
object.entries: 1.1.8
|
object.entries: 1.1.8
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
eslint-config-atomic@1.22.0(eslint@8.57.0):
|
eslint-config-atomic@1.22.1(eslint@8.57.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.25.2
|
'@babel/core': 7.25.2
|
||||||
'@babel/eslint-parser': 7.25.1(@babel/core@7.25.2)(eslint@8.57.0)
|
'@babel/eslint-parser': 7.25.1(@babel/core@7.25.2)(eslint@8.57.0)
|
||||||
|
@ -8618,7 +8618,7 @@ snapshots:
|
||||||
doctrine: 2.1.0
|
doctrine: 2.1.0
|
||||||
eslint: 8.57.0
|
eslint: 8.57.0
|
||||||
has: 1.0.4
|
has: 1.0.4
|
||||||
jsx-ast-utils: 2.4.1
|
jsx-ast-utils: 3.3.5
|
||||||
minimatch: 3.1.2
|
minimatch: 3.1.2
|
||||||
object.entries: 1.1.8
|
object.entries: 1.1.8
|
||||||
object.fromentries: 2.0.8
|
object.fromentries: 2.0.8
|
||||||
|
|
|
@ -34,10 +34,7 @@
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"include": [
|
"include": [
|
||||||
"./src",
|
"./src",
|
||||||
"dev/scripts",
|
"./dev/",
|
||||||
"packages/untildify-user/untildify.ts",
|
"./*.ts"
|
||||||
"dev/docker/ci/docker-ci.mjs",
|
|
||||||
"./jest.config.ts",
|
|
||||||
"packages/os-env/src/escape-quotes.d.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
11
turbo.json
11
turbo.json
|
@ -6,6 +6,17 @@
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
||||||
"outputs": ["dist/**"]
|
"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"
|
"ui": "stream"
|
||||||
|
|
Loading…
Reference in New Issue