Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stylelint: Move .stylelintrc to stylelint.config.js.
Anders Kaseorg6c0afbb68d53
diff --git a/docs/testing/linters.md b/docs/testing/linters.mdindex 570f1a651a4..857001faa4f 100644--- a/docs/testing/linters.md+++ b/docs/testing/linters.md@@ -215,7 +215,7 @@ clean those files up eventually.Zulip uses [stylelint](https://github.com/stylelint/stylelint) to lintits CSS; see our-[configuration](https://github.com/zulip/zulip/blob/master/.stylelintrc)+[configuration](https://github.com/zulip/zulip/blob/master/stylelint.config.js)for the rules we currently enforce.#### Shell scriptsdiff --git a/.stylelintrc b/stylelint.config.jssimilarity index 94%rename from .stylelintrcrename to stylelint.config.jsindex 1f59d958346..03191aa5a18 100644--- a/.stylelintrc+++ b/stylelint.config.js@@ -1,6 +1,8 @@-{- "rules": {- # Stylistic rules for CSS.+"use strict";++module.exports = {+ rules: {+ // Stylistic rules for CSS."function-comma-space-after": "always","function-comma-space-before": "never","function-max-empty-lines": 0,@@ -58,10 +60,10 @@"at-rule-semicolon-space-before": "never","comment-whitespace-inside": "always",- "indentation": 4,-- # Limit language features+ indentation: 4,++ // Limit language features"color-no-hex": true,"color-named": "never",- }-}+ },+};diff --git a/tools/lint b/tools/lintindex d547027c79d..228f65cf566 100755--- a/tools/lint+++ b/tools/lint@@ -51,7 +51,7 @@ def run() -> None:linter_config.external_linter('css', ['node', 'node_modules/.bin/stylelint'], ['css', 'scss'],fix_arg='--fix',description="Standard CSS style and formatting linter "- "(config: .stylelintrc)")+ "(config: stylelint.config.js)")linter_config.external_linter('eslint', ['node', 'node_modules/.bin/eslint','--quiet', '--cache', '--ext', '.js,.ts'], ['js', 'ts'],fix_arg='--fix',