eslint-config-moneyforward 5.1.0 → 5.1.2
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/README.md +1 -1
- package/configs/flat/storybook.mjs +4 -0
- package/package.json +6 -6
- package/rules/storybook.js +4 -0
- package/rules/typescript.js +4 -0
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ We also provide various other rule sets that you can configure to suit your proj
|
|
|
112
112
|
| `next` | Contains Next.js recommended rules | [`@next/eslint-plugin-next`](https://github.com/vercel/next.js/tree/canary/packages/eslint-plugin-next) |
|
|
113
113
|
| `node` | Contains Node.js recommended rules | [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n) |
|
|
114
114
|
| `react` | Contains React recommended rules | [`eslint-plugin-jsx-a11y`](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y) <br> [`eslint-plugin-react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks) <br> [`eslint-plugin-react`](https://github.com/jsx-eslint/eslint-plugin-react) |
|
|
115
|
-
| `storybook` | Contains Storybook recommended rules | [`eslint-plugin-storybook`](https://github.com/storybookjs/eslint-plugin
|
|
115
|
+
| `storybook` | Contains Storybook recommended rules | [`eslint-plugin-storybook`](https://github.com/storybookjs/storybook/tree/next/code/lib/eslint-plugin) |
|
|
116
116
|
| `test/react` | Contains Jest and React Testing Library rules | [`eslint-plugin-jest`](https://github.com/jest-community/eslint-plugin-jest) <br> [`eslint-plugin-jest-dom`](https://github.com/testing-library/eslint-plugin-jest-dom) <br> [`eslint-plugin-testing-library`](https://github.com/testing-library/eslint-plugin-testing-library) |
|
|
117
117
|
| `typescript` | Contains TypeScript recommended rules | [`@eslint-typescript/eslint-plugin`](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin) <br> [`@eslint-typescript/parser`](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser) |
|
|
118
118
|
|
|
@@ -21,6 +21,10 @@ export default [
|
|
|
21
21
|
],
|
|
22
22
|
rules: {
|
|
23
23
|
'import/no-default-export': ['off'],
|
|
24
|
+
|
|
25
|
+
// Turn off this rule because type definitions such as `Meta` and `StoryObj` need to be imported from `@storybook/react`.
|
|
26
|
+
// https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
|
|
27
|
+
'storybook/no-renderer-packages': ['off'],
|
|
24
28
|
},
|
|
25
29
|
},
|
|
26
30
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-moneyforward",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Money Forward's ESLint rules as an extensible shared config.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./flat": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
53
53
|
"@typescript-eslint/parser": "^8.24.0",
|
|
54
54
|
"confusing-browser-globals": "^1.0.11",
|
|
55
|
-
"eslint-import-resolver-typescript": "^
|
|
55
|
+
"eslint-import-resolver-typescript": "^4.0.0",
|
|
56
56
|
"eslint-plugin-import": "^2.31.0",
|
|
57
57
|
"eslint-plugin-jest": "^28.9.0",
|
|
58
58
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"eslint-plugin-promise": "^7.2.1",
|
|
63
63
|
"eslint-plugin-react": "^7.37.2",
|
|
64
64
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
65
|
-
"eslint-plugin-storybook": "^0.
|
|
65
|
+
"eslint-plugin-storybook": "^9.0.4",
|
|
66
66
|
"eslint-plugin-testing-library": "^7.0.0",
|
|
67
67
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
68
68
|
"globals": "^15.11.0",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@frontend-tools/release-config": "workspace:*",
|
|
73
|
-
"eslint": "9.
|
|
73
|
+
"eslint": "9.28.0",
|
|
74
74
|
"jest": "29.7.0",
|
|
75
|
-
"semantic-release": "24.2.
|
|
76
|
-
"typescript": "5.
|
|
75
|
+
"semantic-release": "24.2.5",
|
|
76
|
+
"typescript": "5.8.3"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"eslint": "^8.57.0 || ^9.0.0",
|
package/rules/storybook.js
CHANGED
|
@@ -2,6 +2,10 @@ module.exports = {
|
|
|
2
2
|
plugins: ['storybook'],
|
|
3
3
|
extends: ['plugin:storybook/recommended'],
|
|
4
4
|
rules: {
|
|
5
|
+
// Turn off this rule because type definitions such as `Meta` and `StoryObj` need to be imported from `@storybook/react`.
|
|
6
|
+
// https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
|
|
7
|
+
'storybook/no-renderer-packages': ['off'],
|
|
8
|
+
|
|
5
9
|
// `storiesOf` is deprecated and should not be used
|
|
6
10
|
// https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-stories-of.md
|
|
7
11
|
// Since Storybook 5.2, the CSF format was introduced and the storiesOf API has been deprecated.
|
package/rules/typescript.js
CHANGED
|
@@ -22,6 +22,10 @@ module.exports = {
|
|
|
22
22
|
// https://typescript-eslint.io/rules/dot-notation/
|
|
23
23
|
'@typescript-eslint/dot-notation': baseBestPracticesRules['dot-notation'],
|
|
24
24
|
|
|
25
|
+
// Use of `@deprecated` tag should be acceptable during code migration.
|
|
26
|
+
// https://typescript-eslint.io/rules/no-deprecated/
|
|
27
|
+
'@typescript-eslint/no-deprecated': ['warn'],
|
|
28
|
+
|
|
25
29
|
// Disallow unused expressions.
|
|
26
30
|
// https://typescript-eslint.io/rules/no-unused-expressions/
|
|
27
31
|
// Replace 'no-unused-expressions' rule with '@typescript-eslint' version
|