@switz/eslint-config 12.3.0 → 12.3.2

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
@@ -21,17 +21,19 @@ export default [...main];
21
21
  If you need React support, use
22
22
 
23
23
  ```js
24
+ import main from '@switz/eslint-config';
24
25
  import react from '@switz/eslint-config/react.mjs';
25
26
 
26
- export default [...react];
27
+ export default [...main, ...react];
27
28
  ```
28
29
 
29
30
  If you need mdx support, use
30
31
 
31
32
  ```js
33
+ import main from '@switz/eslint-config';
32
34
  import mdx from '@switz/eslint-config/mdx.mjs';
33
35
 
34
- export default [...mdx];
36
+ export default [...main, ...mdx];
35
37
  ```
36
38
 
37
39
  If you need tailwind support, use:
package/eslint.config.mjs CHANGED
@@ -32,9 +32,8 @@ export default tseslint.config(
32
32
  },
33
33
  },
34
34
  js.configs.recommended,
35
- tseslint.configs.recommended,
36
35
  {
37
- files: ['**/*.{js,jsx,ts,tsx}'],
36
+ files: ['**/*.{js,jsx}'],
38
37
  rules: {
39
38
  'max-len': [
40
39
  'error',
@@ -50,6 +49,7 @@ export default tseslint.config(
50
49
  'no-var': ['error'],
51
50
  'no-unused-vars': ['error', { ignoreRestSiblings: true }],
52
51
  'prefer-arrow-callback': ['error'],
52
+ 'no-template-curly-in-string': ['error'],
53
53
  'prefer-const': [
54
54
  'error',
55
55
  {
@@ -59,6 +59,7 @@ export default tseslint.config(
59
59
  'quotes': ['error', 'single', { avoidEscape: true }],
60
60
  },
61
61
  },
62
+ tseslint.configs.recommended,
62
63
  prettierPlugin,
63
64
  {
64
65
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switz/eslint-config",
3
- "version": "12.3.0",
3
+ "version": "12.3.2",
4
4
  "description": "",
5
5
  "main": "eslint.config.mjs",
6
6
  "type": "module",