config: format json hbs as json (#540)
This commit is contained in:
@@ -18,6 +18,14 @@ const config = {
|
|||||||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
||||||
printWidth: 120,
|
printWidth: 120,
|
||||||
importOrderTypeScriptVersion: "4.4.0",
|
importOrderTypeScriptVersion: "4.4.0",
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: "*.json.hbs",
|
||||||
|
options: {
|
||||||
|
parser: "json",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -1,9 +1,35 @@
|
|||||||
{ "name": "@homarr/{{name}}", "private": true, "version": "0.1.0", "exports": {
|
{
|
||||||
".": "./index.ts" }, "typesVersions": { "*": { "*": [ "src/*" ] } }, "license":
|
"name": "@homarr/{{name}}",
|
||||||
"MIT", "scripts": { "clean": "rm -rf .turbo node_modules", "lint": "eslint .",
|
"private": true,
|
||||||
"format": "prettier --check . --ignore-path ../../.gitignore", "typecheck": "tsc
|
"version": "0.1.0",
|
||||||
--noEmit" }, "devDependencies": { "@homarr/eslint-config": "workspace:^0.2.0",
|
"exports": {
|
||||||
"@homarr/prettier-config": "workspace:^0.1.0", "@homarr/tsconfig":
|
".": "./index.ts"
|
||||||
"workspace:^0.1.0", "eslint": "^8.57.0", "typescript": "^5.4.5" },
|
},
|
||||||
"eslintConfig": { "extends": [ "@homarr/eslint-config/base" ] }, "prettier":
|
"typesVersions": {
|
||||||
"@homarr/prettier-config" }
|
"*": {
|
||||||
|
"*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"clean": "rm -rf .turbo node_modules",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
||||||
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
||||||
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
|
"typescript": "^5.4.5"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": [
|
||||||
|
"@homarr/eslint-config/base"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prettier": "@homarr/prettier-config"
|
||||||
|
}
|
||||||
@@ -1,3 +1,13 @@
|
|||||||
{ "extends": "@homarr/tsconfig/base.json", "compilerOptions": {
|
{
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, "include": ["*.ts",
|
"extends": "@homarr/tsconfig/base.json",
|
||||||
"src"], "exclude": ["node_modules"] }
|
"compilerOptions": {
|
||||||
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"*.ts",
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user