mirror of
https://github.com/discourse/discourse.git
synced 2025-04-23 09:34:25 +08:00
DEV: Update linting setup (#31392)
This commit is contained in:
parent
c1ee4e120e
commit
9bebbee01b
2
.streerc
2
.streerc
@ -1,2 +1,2 @@
|
||||
--print-width=100
|
||||
--plugins=plugin/trailing_comma,disable_ternary
|
||||
--plugins=plugin/trailing_comma,plugin/disable_auto_ternary
|
||||
|
12
package.json
12
package.json
@ -6,7 +6,7 @@
|
||||
"license": "GPL-2.0-only",
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-decorators": "^7.25.9",
|
||||
"@discourse/lint-configs": "^2.4.0",
|
||||
"@discourse/lint-configs": "^2.5.0",
|
||||
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
||||
"@fortawesome/fontawesome-free": "6.7.2",
|
||||
"@glint/core": "1.4.1-unstable.34c4510",
|
||||
@ -20,9 +20,9 @@
|
||||
"chrome-launcher": "^1.1.2",
|
||||
"chrome-remote-interface": "^0.33.2",
|
||||
"concurrently": "^9.1.2",
|
||||
"ember-template-lint": "^6.1.0",
|
||||
"ember-template-lint": "6.1.0",
|
||||
"esbuild": "^0.25.0",
|
||||
"eslint": "^9.19.0",
|
||||
"eslint": "9.20.1",
|
||||
"jsdoc": "^4.0.4",
|
||||
"lefthook": "^1.10.10",
|
||||
"licensee": "^11.1.1",
|
||||
@ -33,12 +33,10 @@
|
||||
"moment": "2.30.1",
|
||||
"moment-timezone": "0.5.45",
|
||||
"pikaday": "1.8.2",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier": "2.8.8",
|
||||
"puppeteer-core": "^24.2.1",
|
||||
"squoosh": "https://codeload.github.com/discourse/squoosh/tar.gz/dc9649d",
|
||||
"stylelint": "^16.14.1",
|
||||
"stylelint-config-standard": "^37.0.0",
|
||||
"stylelint-config-standard-scss": "^14.0.0",
|
||||
"stylelint": "16.14.1",
|
||||
"terser": "^5.39.0",
|
||||
"typescript": "5.6.x"
|
||||
},
|
||||
|
861
pnpm-lock.yaml
generated
861
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,42 +1,3 @@
|
||||
export default {
|
||||
extends: ["stylelint-config-standard-scss"],
|
||||
rules: {
|
||||
"color-no-invalid-hex": true,
|
||||
"unit-no-unknown": true,
|
||||
"at-rule-empty-line-before": null,
|
||||
"rule-empty-line-before": [
|
||||
"always",
|
||||
{ except: ["after-single-line-comment", "first-nested"] },
|
||||
],
|
||||
"selector-class-pattern": null,
|
||||
"custom-property-pattern": null,
|
||||
"declaration-empty-line-before": "never",
|
||||
"alpha-value-notation": null,
|
||||
"color-function-notation": null,
|
||||
"shorthand-property-no-redundant-values": null,
|
||||
"declaration-block-no-redundant-longhand-properties": null,
|
||||
"no-descending-specificity": null,
|
||||
"keyframes-name-pattern": null,
|
||||
"scss/dollar-variable-pattern": null,
|
||||
"number-max-precision": null,
|
||||
"scss/at-extend-no-missing-placeholder": null,
|
||||
"scss/load-no-partial-leading-underscore": null,
|
||||
"scss/operator-no-newline-after": null,
|
||||
"selector-id-pattern": null,
|
||||
"no-invalid-position-at-import-rule": null,
|
||||
"scss/at-function-pattern": null,
|
||||
"scss/comment-no-empty": null,
|
||||
"scss/at-mixin-pattern": null,
|
||||
"media-feature-range-notation": "prefix",
|
||||
"property-no-vendor-prefix": [
|
||||
true,
|
||||
{
|
||||
ignoreProperties: [
|
||||
"backdrop-filter",
|
||||
"text-size-adjust",
|
||||
"user-select",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
extends: ["@discourse/lint-configs/stylelint"],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user