diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-06-28 09:55:15 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-07-03 17:35:05 +0200 |
| commit | a947d5b3cff32104ee009113226feab45439dbdd (patch) | |
| tree | bcb49118b7400509f97852382fee2fd2ea7efcf5 /client/simple/package.json | |
| parent | 0cbb4f74ccff4aba15d9f2619f30bf77361f441c (diff) | |
[mod] theme/simple: improve fmt/lint tech
This is one of various PR to refactor the simple theme internally.
Replace eslint tool with Biome. I have been using this for quite some time, and
it will help us to have more consistent and valid code without extending on
other third party plugins.
Removes unused dependencies.
Diffstat (limited to 'client/simple/package.json')
| -rw-r--r-- | client/simple/package.json | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/client/simple/package.json b/client/simple/package.json index 8adcc87fb..8589528f1 100644 --- a/client/simple/package.json +++ b/client/simple/package.json @@ -1,38 +1,36 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "simple", - "version": "1.0.0", + "private": true, + "license": "AGPL-3.0", "type": "module", "scripts": { + "build": "npm run build:icons && npm run build:vite", + "build:icons": "node theme_icons.js", + "build:vite": "vite build", "clean": "rm -Rf node_modules", - "build": "node theme_icons.js && vite build", - "fix": "eslint --fix && stylelint --fix strict 'src/**/*.{css,scss,sass,less,styl,vue,svelte}'", - "icons.html": "node theme_icons.js" + "fix": "npm run fix:stylelint && npm run fix:biome && npm run fix:package", + "fix:biome": "biome check --write", + "fix:package": "sort-package-json --quiet", + "fix:stylelint": "stylelint --fix strict 'src/**/*.{scss,sass,less,styl}'", + "lint": "npm run lint:biome", + "lint:biome": "biome lint" }, "devDependencies": { - "@eslint/js": "^9.29.0", - "copy-webpack-plugin": "^13.0.0", - "css-loader": "^7.1.2", + "@biomejs/biome": "~2.0.6", "edge.js": "^6.2.1", - "eslint": "^9.29.0", - "filemanager-webpack-plugin": "^8.0.0", - "globals": "^16.2.0", "ionicons": "^8.0.9", "leaflet": "^1.9.4", "less": "^4.3.0", - "less-loader": "^12.3.0", "normalize.css": "^8.0.1", "sharp": "^0.34.2", - "style-loader": "^4.0.0", + "sort-package-json": "^3.0.0", "stylelint": "^16.21.0", - "stylelint-config-standard": "^38.0.0", "stylelint-config-standard-less": "^3.0.1", "stylelint-prettier": "^5.0.3", "svgo": "^4.0.0", "swiped-events": "^1.2.0", "vite": "^6.3.5", - "vite-plugin-static-copy": "^3.1.0", - "vite-plugin-stylelint": "^6.0.0", - "webpack": "^5.99.9", - "webpack-cli": "^6.0.1" + "vite-plugin-static-copy": "^3.1.0" } } |