Skip to content

Commit 6fca050

Browse files
Add Stylelint configuration and update ESLint ignores
- Introduced .stylelintrc.json for SCSS linting with specific rules and ignored files - Updated eslint.config.mjs to include additional ignored paths for consistency - Added stylelint and related packages to package.json and package-lock.json - Enhanced linting scripts in package.json to include SCSS linting - Minor adjustments to Avatar component styles and AppMenu for better user experience - Updated PrivateOutlet tests to include new auth state handling - Added new translations for reports in English, Spanish, and French
1 parent 008137d commit 6fca050

File tree

17 files changed

+1128
-48
lines changed

17 files changed

+1128
-48
lines changed

frontend/.stylelintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"plugins": ["stylelint-scss"],
4+
"rules": {
5+
"selector-class-pattern": null,
6+
"no-descending-specificity": null,
7+
"scss/dollar-variable-pattern": null,
8+
"scss/at-mixin-pattern": null
9+
},
10+
"ignoreFiles": [
11+
"coverage/**/*",
12+
"dist/**/*",
13+
"android/app/build/**/*",
14+
"android/.gradle/**/*",
15+
"android/build/**/*",
16+
"android/capacitor-cordova-android-plugins/build/**/*",
17+
"android/app/src/main/assets/public/**/*",
18+
"node_modules/**/*"
19+
]
20+
}

frontend/eslint.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import pluginReactRefresh from 'eslint-plugin-react-refresh';
1818
*/
1919
export default tseslint.config(
2020
{
21+
// Only target TypeScript files
2122
files: ['**/*.ts', '**/*.tsx'],
2223
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
2324
languageOptions: {
@@ -44,6 +45,15 @@ export default tseslint.config(
4445
{
4546
// global ignores
4647
// do not add any other keys to this object
47-
ignores: ['coverage/', 'dist/'],
48+
ignores: [
49+
'coverage/',
50+
'dist/',
51+
'android/app/build/**',
52+
'android/.gradle/**',
53+
'android/build/**',
54+
'android/capacitor-cordova-android-plugins/build/**',
55+
'android/app/src/main/assets/public/**',
56+
'**/node_modules/**'
57+
],
4858
},
4959
);

0 commit comments

Comments
 (0)