diff --git a/webapp/channels/.stylelintrc.json b/webapp/channels/.stylelintrc.json index ed92853322..76cb030267 100644 --- a/webapp/channels/.stylelintrc.json +++ b/webapp/channels/.stylelintrc.json @@ -8,6 +8,7 @@ ], "rules": { "@stylistic/indentation": 4, + "@stylistic/no-missing-end-of-source-newline": true, "no-descending-specificity": null, "font-family-no-missing-generic-family-keyword": null, "property-no-unknown": [ diff --git a/webapp/channels/package.json b/webapp/channels/package.json index 07934532e9..81e1b5e3a3 100644 --- a/webapp/channels/package.json +++ b/webapp/channels/package.json @@ -103,7 +103,7 @@ "@mattermost/eslint-plugin": "*", "@mattermost/mmjstool": "github:mattermost/mattermost-utilities#7b63833d208d482ba4a1c12230bb3e68dd9c5e5e", "@redux-devtools/extension": "3.2.3", - "@stylistic/stylelint-plugin": "2.1.0", + "@stylistic/stylelint-plugin": "3.1.2", "@testing-library/jest-dom": "5.16.4", "@testing-library/react": "12.1.4", "@testing-library/react-hooks": "8.0.1", diff --git a/webapp/channels/src/components/admin_console/access_control/editors/shared.scss b/webapp/channels/src/components/admin_console/access_control/editors/shared.scss index c73535caf8..3ac48db74c 100644 --- a/webapp/channels/src/components/admin_console/access_control/editors/shared.scss +++ b/webapp/channels/src/components/admin_console/access_control/editors/shared.scss @@ -52,4 +52,4 @@ cursor: not-allowed; opacity: 0.4; } -} \ No newline at end of file +} diff --git a/webapp/channels/src/components/admin_console/access_control/editors/table_editor/selector_menus.scss b/webapp/channels/src/components/admin_console/access_control/editors/table_editor/selector_menus.scss index 3415cb12d3..5d65f0814d 100644 --- a/webapp/channels/src/components/admin_console/access_control/editors/table_editor/selector_menus.scss +++ b/webapp/channels/src/components/admin_console/access_control/editors/table_editor/selector_menus.scss @@ -43,4 +43,4 @@ margin-right: 8px; } } -} \ No newline at end of file +} diff --git a/webapp/channels/src/components/invitation_modal/no_permissions_view.scss b/webapp/channels/src/components/invitation_modal/no_permissions_view.scss index 9193bd7b5d..5e36dee62a 100644 --- a/webapp/channels/src/components/invitation_modal/no_permissions_view.scss +++ b/webapp/channels/src/components/invitation_modal/no_permissions_view.scss @@ -28,4 +28,4 @@ font-size: 14px; text-align: left; } -} \ No newline at end of file +} diff --git a/webapp/channels/src/components/purchase_modal/icon_message.scss b/webapp/channels/src/components/purchase_modal/icon_message.scss index ddda9c2853..e16c043b75 100644 --- a/webapp/channels/src/components/purchase_modal/icon_message.scss +++ b/webapp/channels/src/components/purchase_modal/icon_message.scss @@ -107,4 +107,4 @@ } } } -} \ No newline at end of file +} diff --git a/webapp/channels/src/components/threading/virtualized_thread_viewer/virtualized_thread_viewer.scss b/webapp/channels/src/components/threading/virtualized_thread_viewer/virtualized_thread_viewer.scss index 3bb9c172cf..aec7b93416 100644 --- a/webapp/channels/src/components/threading/virtualized_thread_viewer/virtualized_thread_viewer.scss +++ b/webapp/channels/src/components/threading/virtualized_thread_viewer/virtualized_thread_viewer.scss @@ -4,4 +4,4 @@ height: 100%; flex-direction: column; } -} \ No newline at end of file +} diff --git a/webapp/package-lock.json b/webapp/package-lock.json index 958f2d7083..e25c017c12 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -157,7 +157,7 @@ "@mattermost/eslint-plugin": "*", "@mattermost/mmjstool": "github:mattermost/mattermost-utilities#7b63833d208d482ba4a1c12230bb3e68dd9c5e5e", "@redux-devtools/extension": "3.2.3", - "@stylistic/stylelint-plugin": "2.1.0", + "@stylistic/stylelint-plugin": "3.1.2", "@testing-library/jest-dom": "5.16.4", "@testing-library/react": "12.1.4", "@testing-library/react-hooks": "8.0.1", @@ -227,6 +227,70 @@ "yargs": "17.7.2" } }, + "channels/node_modules/@csstools/css-parser-algorithms": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz", + "integrity": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^3.0.3" + } + }, + "channels/node_modules/@csstools/css-tokenizer": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.3.tgz", + "integrity": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": ">=18" + } + }, + "channels/node_modules/@csstools/media-query-list-parser": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-3.0.1.tgz", + "integrity": "sha512-HNo8gGD02kHmcbX6PvCoUuOQvn4szyB9ca63vZHKX5A81QytgDG4oxG4IaEfHTlEZSZ6MjPEMWIVU+zF2PZcgw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^3.0.1", + "@csstools/css-tokenizer": "^3.0.1" + } + }, "channels/node_modules/@floating-ui/react": { "version": "0.26.6", "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.6.tgz", @@ -277,6 +341,28 @@ "proxy-from-env": "^1.1.0" } }, + "channels/node_modules/@stylistic/stylelint-plugin": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-3.1.2.tgz", + "integrity": "sha512-tylFJGMQo62alGazK74MNxFjMagYOHmBZiePZFOJK2n13JZta0uVkB3Bh5qodUmOLtRH+uxH297EibK14UKm8g==", + "dev": true, + "dependencies": { + "@csstools/css-parser-algorithms": "^3.0.1", + "@csstools/css-tokenizer": "^3.0.1", + "@csstools/media-query-list-parser": "^3.0.1", + "is-plain-object": "^5.0.0", + "postcss-selector-parser": "^6.1.2", + "postcss-value-parser": "^4.2.0", + "style-search": "^0.1.0", + "stylelint": "^16.8.2" + }, + "engines": { + "node": "^18.12 || >=20.9" + }, + "peerDependencies": { + "stylelint": "^16.8.0" + } + }, "channels/node_modules/@testing-library/react-hooks": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/@testing-library/react-hooks/-/react-hooks-8.0.1.tgz", @@ -2457,70 +2543,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@csstools/css-parser-algorithms": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.7.1.tgz", - "integrity": "sha512-2SJS42gxmACHgikc1WGesXLIT8d/q2l0UFM7TaEeIzdFCE/FPMtTiizcPGGJtlPo2xuQzY09OhrLTzRxqJqwGw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": "^14 || ^16 || >=18" - }, - "peerDependencies": { - "@csstools/css-tokenizer": "^2.4.1" - } - }, - "node_modules/@csstools/css-tokenizer": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-2.4.1.tgz", - "integrity": "sha512-eQ9DIktFJBhGjioABJRtUucoWR2mwllurfnM8LuNGAqX3ViZXaUchqk+1s7jjtkFiT9ySdACsFEA3etErkALUg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": "^14 || ^16 || >=18" - } - }, - "node_modules/@csstools/media-query-list-parser": { - "version": "2.1.13", - "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-2.1.13.tgz", - "integrity": "sha512-XaHr+16KRU9Gf8XLi3q8kDlI18d5vzKSKCY510Vrtc9iNR0NJzbY9hhTmwhzYZj/ZwGL4VmB3TA9hJW0Um2qFA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": "^14 || ^16 || >=18" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.7.1", - "@csstools/css-tokenizer": "^2.4.1" - } - }, "node_modules/@csstools/selector-specificity": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-4.0.0.tgz", @@ -6294,28 +6316,6 @@ "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@stylistic/stylelint-plugin": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@stylistic/stylelint-plugin/-/stylelint-plugin-2.1.0.tgz", - "integrity": "sha512-mUZEW9uImHSbXeyzbFmHb8WPBv56UTaEnWL/3dGdAiJ54C+8GTfDwDVdI6gbqT9wV7zynkPu7tCXc5746H9mZQ==", - "dev": true, - "dependencies": { - "@csstools/css-parser-algorithms": "^2.5.0", - "@csstools/css-tokenizer": "^2.2.3", - "@csstools/media-query-list-parser": "^2.1.7", - "is-plain-object": "^5.0.0", - "postcss-selector-parser": "^6.0.15", - "postcss-value-parser": "^4.2.0", - "style-search": "^0.1.0", - "stylelint": "^16.2.1" - }, - "engines": { - "node": "^18.12 || >=20.9" - }, - "peerDependencies": { - "stylelint": "^16.0.2" - } - }, "node_modules/@tanstack/react-table": { "version": "8.10.7", "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.10.7.tgz",