@shakuroinc/eslint-config-react 2.3.0 → 4.1.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 +10 -4
  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,18 +69,18 @@ module.exports = {
69
69
  aspects: ['invalidHref', 'preferButton'],
70
70
  },
71
71
  ],
72
- curly: ['error', 'multi-or-nest'],
72
+ curly: ['error', 'multi-line'],
73
+ 'import/order': 0,
73
74
  'no-duplicate-imports': 2,
74
75
  'react-hooks/exhaustive-deps': 2,
75
76
  'react-hooks/rules-of-hooks': 2,
77
+ 'react/button-has-type': 2,
76
78
  'react/display-name': 0,
77
79
  'react/no-unescaped-entities': 0,
78
80
  'react/prop-types': 0,
79
81
  'react/react-in-jsx-scope': 0,
80
82
  'react/self-closing-comp': 1,
81
- 'import/order': 0,
82
83
  'sort-imports': 0,
83
- 'react/button-has-type': 2,
84
84
  'react/function-component-definition': [
85
85
  2,
86
86
  { namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' },
@@ -117,6 +117,9 @@ module.exports = {
117
117
  },
118
118
  ],
119
119
  'simple-import-sort/exports': 1,
120
+ 'tailwindcss/classnames-order': 2,
121
+ 'tailwindcss/no-contradicting-classname': 2,
122
+ 'tailwindcss/no-custom-classname': 1,
120
123
  },
121
124
 
122
125
  overrides: [
@@ -125,6 +128,7 @@ module.exports = {
125
128
  extends: ['plugin:mdx/overrides'],
126
129
  rules: {
127
130
  '@typescript-eslint/naming-convention': 0,
131
+ 'max-lines': 0,
128
132
  'prettier/prettier': [
129
133
  2,
130
134
  {
@@ -138,6 +142,7 @@ module.exports = {
138
142
  extends: ['plugin:mdx/overrides'],
139
143
  rules: {
140
144
  '@typescript-eslint/naming-convention': 0,
145
+ 'max-lines': 0,
141
146
  },
142
147
  },
143
148
  {
@@ -145,6 +150,7 @@ module.exports = {
145
150
  extends: ['plugin:mdx/code-blocks', 'plugin:mdx/recommended'],
146
151
  rules: {
147
152
  '@typescript-eslint/naming-convention': 0,
153
+ 'max-lines': 0,
148
154
  },
149
155
  },
150
156
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakuroinc/eslint-config-react",
3
- "version": "2.3.0",
3
+ "version": "4.1.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.29.1",
14
- "@typescript-eslint/parser": "^4.29.1",
15
- "eslint": "^7.32.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.12.0",
14
+ "@typescript-eslint/parser": "^5.12.0",
15
+ "eslint": "^8.9.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.28.0",
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.4.4",
25
+ "prettier": "^2.5.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "@typescript-eslint/eslint-plugin": "^4.29.1",
29
- "@typescript-eslint/parser": "^4.29.1",
30
- "eslint": "^7.32.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
  }