mirror of
https://github.com/searxng/searxng.git
synced 2025-03-12 15:41:15 +00:00
[web-client] simple theme: stylelint LESS source files
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
b74496b192
commit
a8ed79b730
5 changed files with 1103 additions and 653 deletions
1
client/simple/.gitignore
vendored
1
client/simple/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
dist
|
||||
node_modules
|
||||
.stylelintcache
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"extends": "stylelint-config-standard-less",
|
||||
"formatter": "unix",
|
||||
"plugins": [ "stylelint-prettier" ],
|
||||
"extends": [ "stylelint-config-standard-less" ],
|
||||
"rules": {
|
||||
"prettier/prettier": true,
|
||||
"declaration-empty-line-before": null,
|
||||
"no-invalid-position-at-import-rule": null,
|
||||
"property-no-vendor-prefix": null,
|
1736
client/simple/package-lock.json
generated
1736
client/simple/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"fix": "eslint --fix"
|
||||
"fix": "eslint --fix && stylelint --fix strict 'src/**/*.{css,scss,sass,less,styl,vue,svelte}'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.19.0",
|
||||
|
@ -18,8 +18,13 @@
|
|||
"less-loader": "^12.2.0",
|
||||
"normalize.css": "^8.0.1",
|
||||
"style-loader": "^4.0.0",
|
||||
"stylelint": "^16.14.1",
|
||||
"stylelint-config-standard": "^37.0.0",
|
||||
"stylelint-config-standard-less": "^3.0.1",
|
||||
"stylelint-prettier": "^5.0.3",
|
||||
"vite": "^6.0.7",
|
||||
"vite-plugin-static-copy": "^2.2.0",
|
||||
"vite-plugin-stylelint": "^6.0.0",
|
||||
"webpack": "^5.97.1",
|
||||
"webpack-cli": "^6.0.1"
|
||||
},
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
import { resolve } from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
import stylelint from "vite-plugin-stylelint";
|
||||
import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
|
||||
|
||||
|
@ -105,6 +106,12 @@ export default defineConfig({
|
|||
|
||||
plugins: [
|
||||
|
||||
stylelint({
|
||||
build: true,
|
||||
emitWarningAsError: true,
|
||||
fix: true,
|
||||
}),
|
||||
|
||||
// Leaflet
|
||||
|
||||
viteStaticCopy({
|
||||
|
|
Loading…
Reference in a new issue