File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Shared ESLint config for projects using React.
4
4
5
+ > [ !IMPORTANT]
6
+ > Configs now require to use the ESLint Flat Config format.
7
+ > See the [ migration guide] ( https://github.com/cheminfo/eslint-config/blob/main/MIGRATION.md ) for more information.
8
+
5
9
## Installation
6
10
7
11
``` console
@@ -10,6 +14,8 @@ npm i -D eslint-config-cheminfo-react eslint@^8.57.0
10
14
11
15
## Usage
12
16
17
+ ### In JavaScript projects
18
+
13
19
Create a ` eslint.config.mjs ` file with the following contents:
14
20
15
21
``` js
@@ -20,6 +26,10 @@ export default [...react];
20
26
21
27
You can then customize the config for your project.
22
28
29
+ ### In TypeScript projects
30
+
31
+ See https://github.com/cheminfo/eslint-config/tree/main?tab=readme-ov-file#typescript-and-react
32
+
23
33
## References
24
34
25
35
This config extends our base [ ` eslint-config-cheminfo ` ] ( https://github.com/cheminfo/eslint-config ) JavaScript config.
You can’t perform that action at this time.
0 commit comments