Skip to content

Commit

Permalink
chore: lint, format with biome (#418)
Browse files Browse the repository at this point in the history
* chore: lint, format all

* chore: add aria-hidden in svg

* Revert "chore: add aria-hidden in svg"

This reverts commit 870e02e.

* Revert "chore: lint, format all"

This reverts commit fce8cc9.

* chore: ignore archive
  • Loading branch information
junghyeonsu authored Jun 18, 2024
1 parent b284fc9 commit fd49012
Show file tree
Hide file tree
Showing 84 changed files with 4,878 additions and 5,028 deletions.
24 changes: 22 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,44 @@
"enabled": false
},
"formatter": {
"ignore": ["package.json", "**/archive/**/*"],
"enabled": true,
"indentStyle": "space",
"lineWidth": 100
},
"linter": {
"enabled": true,
"ignore": ["public", "node_modules", ".cache", "lib", "dist", "**/archive/**/*"],
"rules": {
"recommended": true
"recommended": true,
"style": {
"useNodejsImportProtocol": "off",
"noNonNullAssertion": "warn",
"noUnusedTemplateLiteral": "warn",
"useTemplate": "warn"
},
"complexity": {
"useLiteralKeys": "warn"
},
"correctness": {
"useExhaustiveDependencies": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "warn"
}
}
},
"overrides": [
{
"include": ["docs/**/*"],
"ignore": ["public", "node_modules", ".cache"],
"ignore": ["public", "node_modules", ".cache", "lib", "dist"],
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "off"
},
"correctness": {
"useExhaustiveDependencies": "warn"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion docs/content/component/chip-filter/component-meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion docs/content/component/text-field/component-meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
}
}
}
}
}
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.0.0",
"private": true,
"description": "seed docs",
"keywords": ["gatsby"],
"keywords": [
"gatsby"
],
"author": "junghyeonsu",
"scripts": {
"build": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --verbose --log-pages",
Expand Down
8 changes: 6 additions & 2 deletions docs/scripts/validate-meta-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import chalk from "chalk";
import fs from "node:fs/promises";
import path from "node:path";

import componentMetaSchema from "../schema/component-meta.json" assert { type: "json" };
import primitiveMetaSchema from "../schema/primitive-meta.json" assert { type: "json" };
import componentMetaSchema from "../schema/component-meta.json" assert {
type: "json",
};
import primitiveMetaSchema from "../schema/primitive-meta.json" assert {
type: "json",
};

const ajv = new Ajv();

Expand Down
Loading

0 comments on commit fd49012

Please sign in to comment.