@shakuroinc/eslint-config-react 4.3.0 → 5.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 +16 -27
  2. package/package.json +28 -28
package/.eslintrc.js CHANGED
@@ -1,7 +1,12 @@
1
1
  module.exports = {
2
- parser: '@typescript-eslint/parser',
3
-
4
- plugins: ['@typescript-eslint', 'react', 'react-hooks', 'jsx-a11y', 'simple-import-sort', 'tailwindcss'],
2
+ plugins: [
3
+ '@typescript-eslint',
4
+ 'react',
5
+ 'react-hooks',
6
+ 'jsx-a11y',
7
+ 'simple-import-sort',
8
+ 'tailwindcss',
9
+ ],
5
10
 
6
11
  extends: [
7
12
  'plugin:@typescript-eslint/recommended',
@@ -11,7 +16,7 @@ module.exports = {
11
16
  ],
12
17
 
13
18
  parserOptions: {
14
- ecmaVersion: 2018,
19
+ ecmaVersion: 2020,
15
20
  sourceType: 'module',
16
21
  ecmaFeatures: {
17
22
  jsx: true,
@@ -151,33 +156,17 @@ module.exports = {
151
156
 
152
157
  overrides: [
153
158
  {
154
- files: ['*.md'],
155
- extends: ['plugin:mdx/overrides'],
156
- rules: {
157
- '@typescript-eslint/naming-convention': 0,
158
- 'max-lines': 0,
159
- 'prettier/prettier': [
160
- 2,
161
- {
162
- parser: 'markdown',
163
- },
164
- ],
165
- },
166
- },
167
- {
168
- files: ['*.mdx'],
169
- extends: ['plugin:mdx/overrides'],
170
- rules: {
171
- '@typescript-eslint/naming-convention': 0,
172
- 'max-lines': 0,
159
+ files: ['*.mdx', '*.md'],
160
+ extends: 'plugin:mdx/recommended',
161
+ parserOptions: {
162
+ ecmaVersion: 'latest',
173
163
  },
174
- },
175
- {
176
- files: '**/*.{md,mdx}/**',
177
- extends: ['plugin:mdx/code-blocks', 'plugin:mdx/recommended'],
178
164
  rules: {
165
+ '@next/next/no-img-element': 0,
179
166
  '@typescript-eslint/naming-convention': 0,
180
167
  'max-lines': 0,
168
+ 'no-unused-expressions': 0,
169
+ 'react/self-closing-comp': 0,
181
170
  },
182
171
  },
183
172
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakuroinc/eslint-config-react",
3
- "version": "4.3.0",
3
+ "version": "5.0.0",
4
4
  "main": ".eslintrc.js",
5
5
  "author": "Shakuro team",
6
6
  "license": "MIT",
@@ -10,36 +10,36 @@
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.22.0",
14
- "@typescript-eslint/parser": "^5.22.0",
15
- "eslint": "^8.14.0",
13
+ "@typescript-eslint/eslint-plugin": "^5.43.0",
14
+ "@typescript-eslint/parser": "^5.43.0",
15
+ "eslint": "^8.27.0",
16
16
  "eslint-config-prettier": "^8.5.0",
17
- "eslint-mdx": "^1.17.0",
18
- "eslint-plugin-jsx-a11y": "^6.5.1",
19
- "eslint-plugin-mdx": "^1.17.0",
20
- "eslint-plugin-prettier": "^4.0.0",
21
- "eslint-plugin-react": "7.29.4",
22
- "eslint-plugin-react-hooks": "^4.5.0",
23
- "eslint-plugin-simple-import-sort": "^7.0.0",
24
- "eslint-plugin-tailwindcss": "^3.5.0",
25
- "prettier": "^2.6.2",
26
- "prettier-plugin-tailwindcss": "^0.1.10"
17
+ "eslint-mdx": "^2.0.5",
18
+ "eslint-plugin-jsx-a11y": "^6.6.1",
19
+ "eslint-plugin-mdx": "^2.0.5",
20
+ "eslint-plugin-prettier": "^4.2.1",
21
+ "eslint-plugin-react": "7.31.10",
22
+ "eslint-plugin-react-hooks": "^4.6.0",
23
+ "eslint-plugin-simple-import-sort": "^8.0.0",
24
+ "eslint-plugin-tailwindcss": "^3.7.0",
25
+ "prettier": "^2.7.1",
26
+ "prettier-plugin-tailwindcss": "^0.1.13"
27
27
  },
28
28
  "peerDependencies": {
29
- "@typescript-eslint/eslint-plugin": "^5.22.0",
30
- "@typescript-eslint/parser": "^5.22.0",
31
- "eslint": "^8.14.0",
29
+ "@typescript-eslint/eslint-plugin": "^5.43.0",
30
+ "@typescript-eslint/parser": "^5.43.0",
31
+ "eslint": "^8.27.0",
32
32
  "eslint-config-prettier": "^8.5.0",
33
- "eslint-mdx": "^1.17.0",
34
- "eslint-plugin-jsx-a11y": "^6.5.1",
35
- "eslint-plugin-mdx": "^1.17.0",
36
- "eslint-plugin-prettier": "^4.0.0",
37
- "eslint-plugin-react": "7.29.4",
38
- "eslint-plugin-react-hooks": "^4.5.0",
39
- "eslint-plugin-simple-import-sort": "^7.0.0",
40
- "eslint-plugin-tailwindcss": "^3.5.0",
41
- "prettier": "^2.6.2",
42
- "prettier-plugin-tailwindcss": "^0.1.10"
33
+ "eslint-mdx": "^2.0.5",
34
+ "eslint-plugin-jsx-a11y": "^6.6.1",
35
+ "eslint-plugin-mdx": "^2.0.5",
36
+ "eslint-plugin-prettier": "^4.2.1",
37
+ "eslint-plugin-react": "7.31.10",
38
+ "eslint-plugin-react-hooks": "^4.6.0",
39
+ "eslint-plugin-simple-import-sort": "^8.0.0",
40
+ "eslint-plugin-tailwindcss": "^3.7.0",
41
+ "prettier": "^2.7.1",
42
+ "prettier-plugin-tailwindcss": "^0.1.13"
43
43
  },
44
44
  "lint-staged": {
45
45
  "*.{js,ts,tsx}": "eslint"
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "volta": {
53
- "node": "16.13.0",
53
+ "node": "18.12.1",
54
54
  "yarn": "1.18.0"
55
55
  }
56
56
  }