eslint-config-matsuri 1.1.0 → 1.2.1

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/index.js +21 -5
  2. package/package.json +5 -6
package/index.js CHANGED
@@ -10,8 +10,21 @@ const config = {
10
10
  ecmaVersion: 12,
11
11
  },
12
12
  extends: ["eslint:recommended"],
13
+ plugins: ["sort-imports-es6-autofix"],
13
14
  rules: {
14
15
  "no-console": ["error", { allow: ["error"] }],
16
+
17
+ /**
18
+ * eslint-plugin-sort-imports-es6-autofix
19
+ */
20
+ "sort-imports-es6-autofix/sort-imports-es6": [
21
+ 2,
22
+ {
23
+ ignoreCase: false,
24
+ ignoreMemberSort: false,
25
+ memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
26
+ },
27
+ ],
15
28
  },
16
29
  overrides: [
17
30
  {
@@ -20,11 +33,10 @@ const config = {
20
33
  browser: true,
21
34
  es2021: true,
22
35
  },
23
- plugins: ["css-reorder", "import", "jsx-a11y", "unused-imports"],
36
+ plugins: ["css-reorder", "jsx-a11y", "unused-imports"],
24
37
  extends: [
25
38
  "plugin:react/recommended",
26
39
  "plugin:react-hooks/recommended",
27
- "plugin:import/typescript",
28
40
  "plugin:react/jsx-runtime",
29
41
  "plugin:@typescript-eslint/recommended",
30
42
  "plugin:jsx-a11y/recommended",
@@ -40,12 +52,10 @@ const config = {
40
52
  },
41
53
  },
42
54
  rules: {
43
- "import/no-deprecated": "error",
44
-
45
55
  "css-reorder/property-reorder": "error",
46
56
 
47
57
  "@typescript-eslint/explicit-module-boundary-types": "off",
48
-
58
+
49
59
  "@typescript-eslint/strict-boolean-expressions": [
50
60
  "error",
51
61
  {
@@ -66,11 +76,17 @@ const config = {
66
76
  ],
67
77
  "react/prop-types": "off",
68
78
  "react/display-name": "off",
79
+ // For emotion and its css prop
80
+ "react/no-unknown-property": ["error", { ignore: ["css"] }],
69
81
  "react-hooks/exhaustive-deps": "error",
70
82
 
71
83
  "jsx-a11y/click-events-have-key-events": "off",
72
84
  "jsx-a11y/no-autofocus": "off",
73
85
 
86
+ // 当社のサービスでは、ユーザーがアップロードした動画を表示することが主であり、
87
+ // 字幕を付加することはあまり想定されず、無意味なtrack要素の挿入を招くため無効化する
88
+ "jsx-a11y/media-has-caption": "off",
89
+
74
90
  /**
75
91
  * settings for unused-imports
76
92
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-matsuri",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "devDependencies": {
21
21
  "@emotion/react": "11.9.3",
22
22
  "@types/react": "18.0.14",
23
- "eslint": "8.18.0",
23
+ "eslint": "8.28.0",
24
24
  "react": "18.2.0",
25
25
  "typescript": "4.7.4"
26
26
  },
@@ -28,12 +28,11 @@
28
28
  "@typescript-eslint/eslint-plugin": "5.30.0",
29
29
  "@typescript-eslint/parser": "5.32.0",
30
30
  "eslint-config-prettier": "8.5.0",
31
- "eslint-import-resolver-typescript": "3.2.4",
32
31
  "eslint-plugin-css-reorder": "0.5.1",
33
- "eslint-plugin-import": "2.26.0",
34
- "eslint-plugin-jsx-a11y": "6.6.0",
35
- "eslint-plugin-react": "7.30.1",
32
+ "eslint-plugin-jsx-a11y": "6.6.1",
33
+ "eslint-plugin-react": "7.31.10",
36
34
  "eslint-plugin-react-hooks": "4.6.0",
35
+ "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
37
36
  "eslint-plugin-unused-imports": "2.0.0"
38
37
  }
39
38
  }