diff --git a/extensions/.stylelintrc.cjs b/extensions/.stylelintrc.cjs index a8534cc879..f959736685 100644 --- a/extensions/.stylelintrc.cjs +++ b/extensions/.stylelintrc.cjs @@ -13,6 +13,10 @@ module.exports = { }, ], rules: { + // Disable Stylelint's indentation control + '@stylistic/indentation': null, + // Let Prettier handle selector list formatting + '@stylistic/selector-list-comma-newline-after': null, 'color-named': null, 'max-nesting-depth': 2, 'no-descending-specificity': null, diff --git a/extensions/package.json b/extensions/package.json index 5d5cf51a42..751b543d61 100644 --- a/extensions/package.json +++ b/extensions/package.json @@ -11,6 +11,8 @@ "watch": "npm run build -- --watch", "build:production": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=false webpack", "watch:production": "npm run build:production -- --watch", + "format": "prettier --write .", + "format:check": "prettier --check .", "zip": "tsx ./lib/zip-extensions.ts", "package": "npm run build:production && npm run zip", "package:debug": "cross-env DEBUG_PROD=true npm run package", @@ -21,7 +23,7 @@ "lint:scripts": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .", "lint:styles": "stylelint **/*.{css,scss}", "lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix", - "lint-fix:scripts": "prettier --write \"**/*.{ts,tsx,js,jsx,cjs}\" && npm run lint:scripts", + "lint-fix:scripts": "npm run format && npm run lint:scripts", "lint:staged": "lint-staged -q", "postinstall": "tsx ./lib/add-remotes.ts", "create-extension": "tsx ./lib/create-extension.ts", diff --git a/extensions/src/evil/assets/evil.web-view.html b/extensions/src/evil/assets/evil.web-view.html index c8d010dfd2..990166a95e 100644 --- a/extensions/src/evil/assets/evil.web-view.html +++ b/extensions/src/evil/assets/evil.web-view.html @@ -1,4 +1,4 @@ - +