@switz/eslint-config 12.1.5 → 12.2.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/eslint.config.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import js from '@eslint/js';
2
2
  import prettierPlugin from 'eslint-plugin-prettier/recommended';
3
- import eslintPluginReadableTailwind from 'eslint-plugin-readable-tailwind';
4
3
  import globals from 'globals';
5
4
 
6
5
  import tseslint from 'typescript-eslint';
@@ -36,15 +35,7 @@ export default tseslint.config(
36
35
  tseslint.configs.recommended,
37
36
  {
38
37
  files: ['**/*.{js,jsx,ts,tsx}'],
39
- plugins: {
40
- 'readable-tailwind': eslintPluginReadableTailwind,
41
- },
42
38
  rules: {
43
- // enable all recommended rules to warn
44
- ...eslintPluginReadableTailwind.configs.warning.rules,
45
- // enable all recommended rules to error
46
- ...eslintPluginReadableTailwind.configs.error.rules,
47
- 'readable-tailwind/multiline': ['off'],
48
39
  'max-len': [
49
40
  'error',
50
41
  {
@@ -74,7 +65,6 @@ export default tseslint.config(
74
65
  'prettier/prettier': [
75
66
  'error',
76
67
  {
77
- // plugins: ['prettier-plugin-tailwindcss'],
78
68
  singleQuote: true,
79
69
  trailingComma: 'es5',
80
70
  printWidth: 100,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switz/eslint-config",
3
- "version": "12.1.5",
3
+ "version": "12.2.0",
4
4
  "description": "",
5
5
  "main": "eslint.config.mjs",
6
6
  "type": "module",
package/react.mjs CHANGED
@@ -1,19 +1,19 @@
1
- import react from "eslint-plugin-react";
2
- import main from "./eslint.config.mjs";
1
+ import react from 'eslint-plugin-react';
2
+ import main from './eslint.config.mjs';
3
3
  // import tailwind from './tailwind.mjs';
4
4
 
5
5
  export default [
6
6
  react.configs.flat.recommended,
7
- react.configs.flat["jsx-runtime"],
7
+ react.configs.flat['jsx-runtime'],
8
8
  ...main,
9
9
  // ...tailwind,
10
10
  {
11
11
  rules: {
12
- "react/display-name": "off",
12
+ 'react/display-name': 'off',
13
13
  },
14
14
  settings: {
15
15
  react: {
16
- version: "detect",
16
+ version: 'detect',
17
17
  },
18
18
  },
19
19
  },
package/tailwind.mjs CHANGED
@@ -1,3 +1,17 @@
1
- import eslintPluginTailwindCSS from 'eslint-plugin-tailwindcss';
1
+ import eslintPluginReadableTailwind from 'eslint-plugin-readable-tailwind';
2
2
 
3
- export default [eslintPluginTailwindCSS.configs['flat/recommended']];
3
+ export default [
4
+ {
5
+ plugins: {
6
+ 'readable-tailwind': eslintPluginReadableTailwind,
7
+ },
8
+ rules: {
9
+ // enable all recommended rules to warn
10
+ ...eslintPluginReadableTailwind.configs.warning.rules,
11
+ // enable all recommended rules to error
12
+ ...eslintPluginReadableTailwind.configs.error.rules,
13
+ // disabled because this conflicts with prettier. not worth the headache
14
+ 'readable-tailwind/multiline': ['off'],
15
+ },
16
+ },
17
+ ];