build: lint

This commit is contained in:
xHyroM 2023-04-09 15:37:55 +02:00
parent aff5c3227d
commit eea36abb25
No known key found for this signature in database
GPG key ID: BE0423F386C436AA
4 changed files with 57 additions and 58 deletions

18
.vscode/settings.json vendored
View file

@ -1,11 +1,11 @@
{ {
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "rome.rome" "editor.defaultFormatter": "rome.rome"
}, },
"[javascript]": { "[javascript]": {
"editor.defaultFormatter": "rome.rome" "editor.defaultFormatter": "rome.rome"
}, },
"[astro]": { "[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
} }
} }

View file

@ -1,15 +1,14 @@
module.exports = { module.exports = {
plugins: [ plugins: [
require.resolve("prettier-plugin-astro"), require.resolve("prettier-plugin-astro"),
require.resolve("prettier-plugin-tailwindcss"), require.resolve("prettier-plugin-tailwindcss"),
], ],
overrides: [ overrides: [
{ {
files: "*.astro", files: "*.astro",
options: { options: {
parser: "astro", parser: "astro",
}, },
}, },
], ],
}; };

View file

@ -1,15 +1,15 @@
{ {
"$schema": "./node_modules/rome/configuration_schema.json", "$schema": "./node_modules/rome/configuration_schema.json",
"organizeImports": { "organizeImports": {
"enabled": false "enabled": false
}, },
"files": { "files": {
"ignore": ["dist/**"] "ignore": ["dist/**"]
}, },
"linter": { "linter": {
"enabled": true, "enabled": true,
"rules": { "rules": {
"recommended": true "recommended": true
} }
} }
} }

View file

@ -1,24 +1,24 @@
{ {
"$schema": "https://turbo.build/schema.json", "$schema": "https://turbo.build/schema.json",
"pipeline": { "pipeline": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist"] "outputs": ["dist"]
}, },
"dev": { "dev": {
"outputs": ["dist"] "outputs": ["dist"]
}, },
"dev:tunnel": { "dev:tunnel": {
"outputs": ["dist"] "outputs": ["dist"]
}, },
"preview": { "preview": {
"outputs": ["dist"] "outputs": ["dist"]
}, },
"deploy": { "deploy": {
"dependsOn": ["build", "test", "lint"] "dependsOn": ["build", "test", "lint"]
}, },
"test": { "test": {
"dependsOn": ["^build"] "dependsOn": ["^build"]
} }
} }
} }