Skip to content

Commit 33a485e

Browse files
committed
docs: update ESLint configuration references and improve i18n import paths
1 parent a52fa0a commit 33a485e

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

documentation/docs/03-Project Structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To achieve this, the project structure is thoughtfully organized into distinct s
3131
| `jest.config.js` | Configuration file for Jest testing. |
3232
| `tsconfig.json` | TypeScript configuration (for TypeScript projects). |
3333
| `src/app.tsx` | Main component of the application. |
34-
| `eslint.config.js` | ESLint configuration with project structure rules. |
34+
| `eslint.config.mjs` | ESLint configuration with project structure rules. |
3535

3636
## Atomic Design
3737

documentation/docs/04-Guides/09-ESLint.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ These rules help maintain consistency and prevent common architectural issues as
1212
:::tip Optional Strict Rules
1313
The project structure enforcement rules are **intentionally strict** to maintain architectural consistency. However, they are:
1414
- **Evolutionary**: These rules will be refined and updated over time as best practices emerge
15-
- **Optional**: If you find them too restrictive for your use case, you can disable them by commenting out the project-structure configuration in `eslint.config.js`:
15+
- **Optional**: If you find them too restrictive for your use case, you can disable them by commenting out the project-structure configuration in `eslint.config.mjs`:
1616

17-
```js title="eslint.config.js"
17+
```js title="eslint.config.mjs"
1818
export default defineConfig([
1919
// {
2020
// files: ['**/*.{js,jsx,ts,tsx}'],
@@ -40,7 +40,7 @@ You can also selectively disable specific rules (e.g., only keep `folder-structu
4040

4141
The boilerplate now uses a modern ESLint flat config with several powerful plugins:
4242

43-
```js title="eslint.config.js"
43+
```js title="eslint.config.mjs"
4444
import { defineConfig } from 'eslint/config';
4545
import tseslint from 'typescript-eslint';
4646
import eslint from '@eslint/js';
@@ -64,7 +64,7 @@ export default defineConfig([
6464

6565
The ESLint configuration works seamlessly with both TypeScript and JavaScript projects:
6666

67-
```js title="eslint.config.js"
67+
```js title="eslint.config.mjs"
6868
export default defineConfig([
6969
// ... TypeScript configs
7070

@@ -543,7 +543,7 @@ npm run lint
543543

544544
If TypeScript type checking is slow:
545545

546-
```js title="eslint.config.js"
546+
```js title="eslint.config.mjs"
547547
{
548548
languageOptions: {
549549
parserOptions: {

documentation/docs/10-FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This means you get the same architectural enforcement and code quality rules reg
8989

9090
### Can I disable the strict project structure rules?
9191

92-
Yes! The project structure enforcement rules are optional. You can disable them by commenting out the configuration in `eslint.config.js`:
92+
Yes! The project structure enforcement rules are optional. You can disable them by commenting out the configuration in `eslint.config.mjs`:
9393

9494
```js
9595
// Comment out this section to disable project structure enforcement

template/src/services/i18n/instance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import i18n from 'i18next';
44
import { initReactI18next } from 'react-i18next';
55
import * as z from 'zod';
66

7-
import en from '../../translations/en-EN.json';
8-
import fr from '../../translations/fr-FR.json';
7+
import en from '@/translations/en-en.json';
8+
import fr from '@/translations/fr-fr.json';
99

1010
export const enum SupportedLanguages {
1111
EN_EN = 'en-EN',

0 commit comments

Comments
 (0)