@switz/eslint-config 12.2.0 → 12.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ $ pnpm install -D eslint @switz/eslint-config
12
12
 
13
13
  Update your eslint config (`eslint.config.mjs`)
14
14
 
15
- ```
15
+ ```js
16
16
  import main from '@switz/eslint-config';
17
17
 
18
18
  export default [...main];
@@ -20,20 +20,30 @@ export default [...main];
20
20
 
21
21
  If you need React support, use
22
22
 
23
- ```
24
- import react from '@switz/eslint-config/react';
23
+ ```js
24
+ import react from '@switz/eslint-config/react.mjs';
25
25
 
26
26
  export default [...react];
27
27
  ```
28
28
 
29
29
  If you need mdx support, use
30
30
 
31
- ```
32
- import mdx from '@switz/eslint-config/mdx';
31
+ ```js
32
+ import mdx from '@switz/eslint-config/mdx.mjs';
33
33
 
34
34
  export default [...mdx];
35
35
  ```
36
36
 
37
+ If you need tailwind support, use:
38
+
39
+ ```js
40
+ import main from '@switz/eslint-config/main.mjs';
41
+ import react from '@switz/eslint-config/react.mjs';
42
+ import tailwind from '@switz/eslint-config/tailwind.mjs';
43
+
44
+ export default [...main, ...react, ...tailwind];
45
+ ```
46
+
37
47
  You should be able to combine configs just by spreading more into the array.
38
48
 
39
49
  ## Reference
package/mdx.mjs CHANGED
@@ -1,8 +1,6 @@
1
- import main from './eslint.config.mjs';
2
1
  import * as mdx from 'eslint-plugin-mdx';
3
2
 
4
3
  export default [
5
- ...main,
6
4
  {
7
5
  ...mdx.flat,
8
6
  // files: ['**/*.mdx'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switz/eslint-config",
3
- "version": "12.2.0",
3
+ "version": "12.3.0",
4
4
  "description": "",
5
5
  "main": "eslint.config.mjs",
6
6
  "type": "module",
package/react.mjs CHANGED
@@ -1,11 +1,9 @@
1
1
  import react from 'eslint-plugin-react';
2
- import main from './eslint.config.mjs';
3
2
  // import tailwind from './tailwind.mjs';
4
3
 
5
4
  export default [
6
5
  react.configs.flat.recommended,
7
6
  react.configs.flat['jsx-runtime'],
8
- ...main,
9
7
  // ...tailwind,
10
8
  {
11
9
  rules: {