-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
31 lines (27 loc) · 1.21 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
// Specify the environments where the code will run
"env": {
"jest": true, // Enable Jest for testing
"browser": true // Enable browser environment
},
// Stop ESLint from searching for configuration in parent folders
"root": true,
// Specify the parser for TypeScript (using @typescript-eslint/parser)
"parser": "@typescript-eslint/parser", // Leverages TS ESTree to lint TypeScript
// Add additional rules and configuration options
"plugins": ["@typescript-eslint"],
// Extend various ESLint configurations and plugins
"extends": [
"eslint:recommended", // ESLint recommended rules
"plugin:react/recommended", // React recommended rules
"plugin:@typescript-eslint/recommended", // TypeScript recommended rules
"plugin:@typescript-eslint/eslint-recommended", // ESLint overrides for TypeScript
"prettier", // Prettier rules
"plugin:prettier/recommended", // Prettier plugin integration
"plugin:react-hooks/recommended", // Recommended rules for React hooks
"plugin:storybook/recommended" // Recommended rules for Storybook
],
"rules": {
"react/react-in-jsx-scope": "off"
}
}