feat: sharing config files (#253)
This commit is contained in:
parent
b3d765f96f
commit
0abe83aea9
18 changed files with 277 additions and 415 deletions
|
@ -15,6 +15,7 @@
|
||||||
"clean": "rimraf node_modules .turbo dist"
|
"clean": "rimraf node_modules .turbo dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@astro-reactive/tsconfig": "*",
|
||||||
"@astro-reactive/form": "*",
|
"@astro-reactive/form": "*",
|
||||||
"@astro-reactive/validator": "*",
|
"@astro-reactive/validator": "*",
|
||||||
"astro": "^1.6.5"
|
"astro": "^1.6.5"
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strictest",
|
"extends": "@astro-reactive/tsconfig/base.json"
|
||||||
"compilerOptions": {
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -24,6 +24,7 @@
|
||||||
"tailwindcss-fluid-type": "^2.0.3"
|
"tailwindcss-fluid-type": "^2.0.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@astro-reactive/tsconfig": "*",
|
||||||
"micromodal": "^0.4.10",
|
"micromodal": "^0.4.10",
|
||||||
"tailwindcss": "^3.1.8"
|
"tailwindcss": "^3.1.8"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
/** @type {import("@types/eslint").Linter.Config} */
|
/** @type {import("@types/eslint").Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
|
||||||
env: {
|
env: {
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
plugins: ["@typescript-eslint", "prettier"],
|
plugins: ["@typescript-eslint", "prettier"],
|
||||||
extends: [
|
extends: [
|
||||||
"../../../.eslintrc.cjs",
|
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"plugin:prettier/recommended",
|
"plugin:prettier/recommended",
|
13
configs/eslint-config/package.json
Normal file
13
configs/eslint-config/package.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"name": "@astro-reactive/eslint-config-custom",
|
||||||
|
"main": "./index.cjs",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/eslint": "^8.4.10",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
||||||
|
"@typescript-eslint/parser": "^5.48.1",
|
||||||
|
"eslint": "^8.31.0",
|
||||||
|
"eslint-config-prettier": "^8.6.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"prettier-plugin-astro": "^0.7.2"
|
||||||
|
}
|
||||||
|
}
|
14
configs/tsconfig/astro-library.json
Normal file
14
configs/tsconfig/astro-library.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "./base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"preserveWatchOutput": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"strict": true
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
7
configs/tsconfig/base.json
Normal file
7
configs/tsconfig/base.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/tsconfig",
|
||||||
|
"extends": "astro/tsconfigs/strictest",
|
||||||
|
"compilerOptions": {
|
||||||
|
"skipLibCheck": true
|
||||||
|
}
|
||||||
|
}
|
3
configs/tsconfig/package.json
Normal file
3
configs/tsconfig/package.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"name": "@astro-reactive/tsconfig"
|
||||||
|
}
|
591
package-lock.json
generated
591
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -34,7 +34,8 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
"apps/*"
|
"apps/*",
|
||||||
|
"configs/*"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"prettier-plugin-astro": "^0.7.0",
|
"prettier-plugin-astro": "^0.7.0",
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"rimraf": "^3.0.2"
|
"rimraf": "^3.0.2"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@astro-reactive/tsconfig": "*"
|
||||||
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./index.ts"
|
".": "./index.ts"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,12 +1,3 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"extends": "@astro-reactive/tsconfig/astro-library.json"
|
||||||
"esModuleInterop": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"preserveWatchOutput": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"noEmit": true,
|
|
||||||
"strict": true
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
/** @type {import("@types/eslint").Linter.Config} */
|
/** @type {import("@types/eslint").Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: '../common/configs/.eslintrc.cjs',
|
root: true,
|
||||||
|
extends: ['@astro-reactive/eslint-config-custom'],
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,13 +36,9 @@
|
||||||
"@types/eslint": "^8.4.6",
|
"@types/eslint": "^8.4.6",
|
||||||
"@types/node": "^18.7.18",
|
"@types/node": "^18.7.18",
|
||||||
"@types/prettier": "^2.7.0",
|
"@types/prettier": "^2.7.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
|
||||||
"astro": "^1.5.0",
|
"astro": "^1.5.0",
|
||||||
"astro-component-tester": "^0.6.0",
|
"astro-component-tester": "^0.6.0",
|
||||||
"eslint": "^8.23.1",
|
"eslint": "^8.23.1",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prettier-plugin-astro": "^0.7.0",
|
"prettier-plugin-astro": "^0.7.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
@ -55,6 +51,8 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-reactive/common": "*",
|
"@astro-reactive/common": "*",
|
||||||
|
"@astro-reactive/eslint-config-custom": "*",
|
||||||
|
"@astro-reactive/tsconfig": "*",
|
||||||
"@astro-reactive/validator": "*",
|
"@astro-reactive/validator": "*",
|
||||||
"short-unique-id": "^4.4.4"
|
"short-unique-id": "^4.4.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strictest",
|
"extends": "@astro-reactive/tsconfig/astro-library.json"
|
||||||
"compilerOptions": {
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"isolatedModules": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"preserveWatchOutput": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"noEmit": true,
|
|
||||||
"strict": true
|
|
||||||
},
|
|
||||||
"exclude": ["node_modules"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/** @type {import("@types/eslint").Linter.Config} */
|
/** @type {import("@types/eslint").Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: '../common/configs/.eslintrc.cjs',
|
root: true,
|
||||||
|
extends: ['@astro-reactive/eslint-config-custom'],
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,13 +34,9 @@
|
||||||
"@types/eslint": "^8.4.6",
|
"@types/eslint": "^8.4.6",
|
||||||
"@types/node": "^18.7.18",
|
"@types/node": "^18.7.18",
|
||||||
"@types/prettier": "^2.7.0",
|
"@types/prettier": "^2.7.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
||||||
"@typescript-eslint/parser": "^5.37.0",
|
|
||||||
"astro": "^1.5.0",
|
"astro": "^1.5.0",
|
||||||
"astro-component-tester": "^0.6.0",
|
"astro-component-tester": "^0.6.0",
|
||||||
"eslint": "^8.23.1",
|
"eslint": "^8.23.1",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prettier-plugin-astro": "^0.7.0",
|
"prettier-plugin-astro": "^0.7.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
|
@ -51,7 +47,9 @@
|
||||||
"astro": "^1.5.0"
|
"astro": "^1.5.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astro-reactive/common": "*"
|
"@astro-reactive/common": "*",
|
||||||
|
"@astro-reactive/eslint-config-custom": "*",
|
||||||
|
"@astro-reactive/tsconfig": "*"
|
||||||
},
|
},
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
{
|
{
|
||||||
"extends": "astro/tsconfigs/strictest",
|
"extends": "@astro-reactive/tsconfig/astro-library.json"
|
||||||
"compilerOptions": {
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue