mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
config: format json hbs as json (#540)
This commit is contained in:
@@ -18,6 +18,14 @@ const config = {
|
||||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
||||
printWidth: 120,
|
||||
importOrderTypeScriptVersion: "4.4.0",
|
||||
overrides: [
|
||||
{
|
||||
files: "*.json.hbs",
|
||||
options: {
|
||||
parser: "json",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
@@ -1,9 +1,35 @@
|
||||
{ "name": "@homarr/{{name}}", "private": true, "version": "0.1.0", "exports": {
|
||||
".": "./index.ts" }, "typesVersions": { "*": { "*": [ "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" }
|
||||
{
|
||||
"name": "@homarr/{{name}}",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"exports": {
|
||||
".": "./index.ts"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
"*": [
|
||||
"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",
|
||||
"src"], "exclude": ["node_modules"] }
|
||||
{
|
||||
"extends": "@homarr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
"include": [
|
||||
"*.ts",
|
||||
"src"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user