mirror of
https://github.com/discourse/discourse.git
synced 2026-08-02 01:28:14 -05:00
DEV: Update linting and npm scripts (#37173)
This commit is contained in:
@@ -97,6 +97,6 @@ jobs:
|
||||
if: ${{ !cancelled() }}
|
||||
run: bundle exec ruby script/i18n_lint.rb "plugins/**/locales/{client,server}.en.yml"
|
||||
|
||||
- name: Glint
|
||||
- name: Types
|
||||
if: ${{ !cancelled() }}
|
||||
run: pnpm lint:glint
|
||||
run: pnpm lint:types
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
align-items: flex-start;
|
||||
|
||||
.d-modal__container {
|
||||
--modal-max-width: $reply-area-max-width;
|
||||
--modal-max-width: #{$reply-area-max-width};
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: unset;
|
||||
|
||||
+1
-1
@@ -154,4 +154,4 @@ lints:
|
||||
glob: "**/{client,server}.en.yml"
|
||||
run: bundle exec ruby script/i18n_lint.rb {all_files}
|
||||
glint:
|
||||
run: pnpm lint:glint
|
||||
run: pnpm lint:types
|
||||
|
||||
+9
-9
@@ -5,7 +5,7 @@
|
||||
"license": "GPL-2.0-only",
|
||||
"devDependencies": {
|
||||
"@babel/plugin-proposal-decorators": "^7.28.0",
|
||||
"@discourse/lint-configs": "^2.36.0",
|
||||
"@discourse/lint-configs": "^2.37.0",
|
||||
"@discourse/moment-timezone-names-translations": "^1.0.0",
|
||||
"@fortawesome/fontawesome-free": "7.1.0",
|
||||
"@glint/ember-tsc": "^1.0.8",
|
||||
@@ -17,7 +17,7 @@
|
||||
"concurrently": "^9.2.1",
|
||||
"ember-template-lint": "7.9.3",
|
||||
"esbuild": "^0.25.11",
|
||||
"eslint": "9.39.1",
|
||||
"eslint": "9.39.2",
|
||||
"jsdoc": "^4.0.5",
|
||||
"lefthook": "^2.0.13",
|
||||
"licensee": "^11.1.1",
|
||||
@@ -25,9 +25,9 @@
|
||||
"lint-to-the-future-ember-template": "^3.1.0",
|
||||
"lint-to-the-future-eslint": "^3.3.0",
|
||||
"playwright": "1.57.0",
|
||||
"prettier": "3.7.3",
|
||||
"prettier": "3.8.0",
|
||||
"puppeteer-core": "^24.34.0",
|
||||
"stylelint": "16.26.1",
|
||||
"stylelint": "17.0.0",
|
||||
"terser": "^5.44.1",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
@@ -39,11 +39,11 @@
|
||||
"lint:css:fix": "pnpm stylelint --fix 'app/assets/stylesheets/**/*.scss' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') 'themes/**/*.scss'",
|
||||
"lint:js": "eslint ./frontend $(script/list_bundled_plugins) ./themes --cache --no-error-on-unmatched-pattern",
|
||||
"lint:js:fix": "eslint --fix ./frontend $(script/list_bundled_plugins) ./themes --no-error-on-unmatched-pattern",
|
||||
"lint:hbs": "ember-template-lint 'frontend/**/*.{gjs,hbs}' 'plugins/*/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/admin/assets/javascripts/**/*.{gjs,hbs}' 'themes/**/*.{gjs,hbs}'",
|
||||
"lint:hbs:fix": "ember-template-lint 'frontend/**/*.{gjs,hbs}' 'plugins/*/assets/javascripts/**/*.{gjs,hbs}' 'plugins/*/admin/assets/javascripts/**/*.{gjs,hbs}' 'themes/**/*.{gjs,hbs}' --fix",
|
||||
"lint:prettier": "pnpm pprettier --list-different 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,hbs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs,hbs}') 'themes/**/*.{js,gjs,hbs,scss}'",
|
||||
"lint:prettier:fix": "pnpm prettier -w --no-error-on-unmatched-pattern 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,hbs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs,hbs}') 'themes/**/*.{js,gjs,hbs,scss}'",
|
||||
"lint:glint": "ember-tsc -b",
|
||||
"lint:hbs": "ember-template-lint 'frontend/**/*.gjs' 'plugins/*/assets/javascripts/**/*.gjs' 'plugins/*/admin/assets/javascripts/**/*.gjs' 'themes/**/*.gjs'",
|
||||
"lint:hbs:fix": "ember-template-lint 'frontend/**/*.gjs' 'plugins/*/assets/javascripts/**/*.gjs' 'plugins/*/admin/assets/javascripts/**/*.gjs' 'themes/**/*.gjs' --fix",
|
||||
"lint:prettier": "pnpm pprettier --list-different 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
||||
"lint:prettier:fix": "pnpm prettier -w --no-error-on-unmatched-pattern 'app/assets/stylesheets/**/*.scss' 'frontend/**/*.{js,gjs,css}' $(script/list_bundled_plugins '/assets/stylesheets/**/*.scss') $(script/list_bundled_plugins '/{assets,admin/assets,test}/javascripts/**/*.{js,gjs}') 'themes/**/*.{js,gjs,scss}'",
|
||||
"lint:types": "ember-tsc -b",
|
||||
"lttf:ignore": "lint-to-the-future ignore",
|
||||
"lttf:output": "lint-to-the-future output -o ./lint-progress/",
|
||||
"lint-progress": "pnpm lttf:output && npx html-pages ./lint-progress --no-cache",
|
||||
|
||||
Generated
+879
-806
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user