feat: sharing config files (#253)

This commit is contained in:
Fazza Razaq Amiarso 2023-01-12 01:09:35 +07:00 committed by GitHub
parent b3d765f96f
commit 0abe83aea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 277 additions and 415 deletions

View file

@ -15,6 +15,7 @@
"clean": "rimraf node_modules .turbo dist"
},
"dependencies": {
"@astro-reactive/tsconfig": "*",
"@astro-reactive/form": "*",
"@astro-reactive/validator": "*",
"astro": "^1.6.5"

View file

@ -1,6 +1,3 @@
{
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
"extends": "@astro-reactive/tsconfig/base.json"
}

View file

@ -24,6 +24,7 @@
"tailwindcss-fluid-type": "^2.0.3"
},
"dependencies": {
"@astro-reactive/tsconfig": "*",
"micromodal": "^0.4.10",
"tailwindcss": "^3.1.8"
},

View file

@ -1,13 +1,11 @@
/** @type {import("@types/eslint").Linter.Config} */
module.exports = {
root: true,
env: {
node: true,
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
extends: [
"../../../.eslintrc.cjs",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",

View 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"
}
}

View 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"]
}

View file

@ -0,0 +1,7 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
}

View file

@ -0,0 +1,3 @@
{
"name": "@astro-reactive/tsconfig"
}

591
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -34,7 +34,8 @@
"license": "ISC",
"workspaces": [
"packages/*",
"apps/*"
"apps/*",
"configs/*"
],
"dependencies": {
"prettier-plugin-astro": "^0.7.0",

View file

@ -7,6 +7,9 @@
"devDependencies": {
"rimraf": "^3.0.2"
},
"dependencies": {
"@astro-reactive/tsconfig": "*"
},
"exports": {
".": "./index.ts"
},

View file

@ -1,12 +1,3 @@
{
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"preserveWatchOutput": true,
"skipLibCheck": true,
"noEmit": true,
"strict": true
}
"extends": "@astro-reactive/tsconfig/astro-library.json"
}

View file

@ -1,4 +1,5 @@
/** @type {import("@types/eslint").Linter.Config} */
module.exports = {
extends: '../common/configs/.eslintrc.cjs',
root: true,
extends: ['@astro-reactive/eslint-config-custom'],
};

View file

@ -36,13 +36,9 @@
"@types/eslint": "^8.4.6",
"@types/node": "^18.7.18",
"@types/prettier": "^2.7.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"astro": "^1.5.0",
"astro-component-tester": "^0.6.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.7.0",
"rimraf": "^3.0.2",
@ -55,6 +51,8 @@
"license": "MIT",
"dependencies": {
"@astro-reactive/common": "*",
"@astro-reactive/eslint-config-custom": "*",
"@astro-reactive/tsconfig": "*",
"@astro-reactive/validator": "*",
"short-unique-id": "^4.4.4"
},

View file

@ -1,14 +1,3 @@
{
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"moduleResolution": "node",
"preserveWatchOutput": true,
"skipLibCheck": true,
"noEmit": true,
"strict": true
},
"exclude": ["node_modules"]
"extends": "@astro-reactive/tsconfig/astro-library.json"
}

View file

@ -1,4 +1,5 @@
/** @type {import("@types/eslint").Linter.Config} */
module.exports = {
extends: '../common/configs/.eslintrc.cjs',
root: true,
extends: ['@astro-reactive/eslint-config-custom'],
};

View file

@ -34,13 +34,9 @@
"@types/eslint": "^8.4.6",
"@types/node": "^18.7.18",
"@types/prettier": "^2.7.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"astro": "^1.5.0",
"astro-component-tester": "^0.6.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.7.0",
"rimraf": "^3.0.2",
@ -51,7 +47,9 @@
"astro": "^1.5.0"
},
"dependencies": {
"@astro-reactive/common": "*"
"@astro-reactive/common": "*",
"@astro-reactive/eslint-config-custom": "*",
"@astro-reactive/tsconfig": "*"
},
"main": "index.js",
"directories": {

View file

@ -1,6 +1,3 @@
{
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"skipLibCheck": true
}
"extends": "@astro-reactive/tsconfig/astro-library.json"
}