@shakuroinc/eslint-config-react 2.2.0 → 4.0.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.
Files changed (2) hide show
  1. package/.eslintrc.js +7 -3
  2. package/package.json +25 -25
package/.eslintrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  parser: '@typescript-eslint/parser',
3
3
 
4
- plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'simple-import-sort'],
4
+ plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'simple-import-sort', 'tailwindcss'],
5
5
 
6
6
  extends: [
7
7
  'plugin:@typescript-eslint/recommended',
@@ -69,17 +69,18 @@ module.exports = {
69
69
  aspects: ['invalidHref', 'preferButton'],
70
70
  },
71
71
  ],
72
+ curly: ['error', 'multi-line'],
73
+ 'import/order': 0,
72
74
  'no-duplicate-imports': 2,
73
75
  'react-hooks/exhaustive-deps': 2,
74
76
  'react-hooks/rules-of-hooks': 2,
77
+ 'react/button-has-type': 2,
75
78
  'react/display-name': 0,
76
79
  'react/no-unescaped-entities': 0,
77
80
  'react/prop-types': 0,
78
81
  'react/react-in-jsx-scope': 0,
79
82
  'react/self-closing-comp': 1,
80
- 'import/order': 0,
81
83
  'sort-imports': 0,
82
- 'react/button-has-type': 2,
83
84
  'react/function-component-definition': [
84
85
  2,
85
86
  { namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
@@ -116,6 +117,9 @@ module.exports = {
116
117
  },
117
118
  ],
118
119
  'simple-import-sort/exports': 1,
120
+ 'tailwindcss/classnames-order': 2,
121
+ 'tailwindcss/no-contradicting-classname': 2,
122
+ 'tailwindcss/no-custom-classname': 1,
119
123
  },
120
124
 
121
125
  overrides: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakuroinc/eslint-config-react",
3
- "version": "2.2.0",
3
+ "version": "4.0.0",
4
4
  "main": ".eslintrc.js",
5
5
  "author": "Shakuro team",
6
6
  "license": "MIT",
@@ -10,34 +10,34 @@
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^4.28.4",
14
- "@typescript-eslint/parser": "^4.28.4",
15
- "eslint": "^7.31.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
14
+ "@typescript-eslint/parser": "^5.7.0",
15
+ "eslint": "^8.5.0",
16
16
  "eslint-config-prettier": "^8.3.0",
17
- "eslint-mdx": "^1.14.1",
18
- "eslint-plugin-jsx-a11y": "^6.4.1",
19
- "eslint-plugin-mdx": "^1.14.1",
20
- "eslint-plugin-prettier": "^3.4.0",
21
- "eslint-plugin-react": "^7.24.0",
22
- "eslint-plugin-react-hooks": "^4.2.0",
17
+ "eslint-mdx": "^1.16.0",
18
+ "eslint-plugin-jsx-a11y": "^6.5.1",
19
+ "eslint-plugin-mdx": "^1.16.0",
20
+ "eslint-plugin-prettier": "^4.0.0",
21
+ "eslint-plugin-react": "^7.27.1",
22
+ "eslint-plugin-react-hooks": "^4.3.0",
23
23
  "eslint-plugin-simple-import-sort": "^7.0.0",
24
- "prettier": "^2.3.2",
25
- "prettier-plugin-tailwind": "^2.2.12"
24
+ "eslint-plugin-tailwindcss": "^3.0.0-beta.0",
25
+ "prettier": "^2.5.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "@typescript-eslint/eslint-plugin": "^4.28.4",
29
- "@typescript-eslint/parser": "^4.28.4",
30
- "eslint": "^7.31.0",
28
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
29
+ "@typescript-eslint/parser": "^5.7.0",
30
+ "eslint": "^8.5.0",
31
31
  "eslint-config-prettier": "^8.3.0",
32
- "eslint-mdx": "^1.14.1",
33
- "eslint-plugin-jsx-a11y": "^6.4.1",
34
- "eslint-plugin-mdx": "^1.14.1",
35
- "eslint-plugin-prettier": "^3.4.0",
36
- "eslint-plugin-react": "^7.24.0",
37
- "eslint-plugin-react-hooks": "^4.2.0",
32
+ "eslint-mdx": "^1.16.0",
33
+ "eslint-plugin-jsx-a11y": "^6.5.1",
34
+ "eslint-plugin-mdx": "^1.16.0",
35
+ "eslint-plugin-prettier": "^4.0.0",
36
+ "eslint-plugin-react": "^7.27.1",
37
+ "eslint-plugin-react-hooks": "^4.3.0",
38
38
  "eslint-plugin-simple-import-sort": "^7.0.0",
39
- "prettier": "^2.3.2",
40
- "prettier-plugin-tailwind": "^2.2.12"
39
+ "eslint-plugin-tailwindcss": "^3.0.0-beta.0",
40
+ "prettier": "^2.5.1"
41
41
  },
42
42
  "lint-staged": {
43
43
  "*.{js,ts,tsx}": "eslint"
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "volta": {
51
- "node": "14.17.0",
52
- "yarn": "1.22.10"
51
+ "node": "16.13.0",
52
+ "yarn": "1.18.0"
53
53
  }
54
54
  }