-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-config-smarthr)!: react 17+以降のルールに対応した (#499)
- Loading branch information
1 parent
a3a0a31
commit 62adc79
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1193,10 +1193,10 @@ exports[`should match ESLint Configuration snapshot 1`] = ` | |
"parser": "typescript-eslint/[email protected]", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jax": true, | ||
"jsx": true, | ||
}, | ||
"ecmaVersion": 2018, | ||
"jsxPragma": null, | ||
"sourceType": "module", | ||
}, | ||
"sourceType": "module", | ||
|
@@ -1906,6 +1906,20 @@ exports[`should match ESLint Configuration snapshot 1`] = ` | |
"no-reserved-keys": [ | ||
0, | ||
], | ||
"no-restricted-imports": [ | ||
2, | ||
{ | ||
"paths": [ | ||
{ | ||
"importNames": [ | ||
"default", | ||
], | ||
"message": "React 17+ では default import は不要なので削除してください。", | ||
"name": "react", | ||
}, | ||
], | ||
}, | ||
], | ||
"no-return-assign": [ | ||
2, | ||
"except-parens", | ||
|
@@ -2212,7 +2226,7 @@ exports[`should match ESLint Configuration snapshot 1`] = ` | |
0, | ||
], | ||
"react/jsx-uses-react": [ | ||
2, | ||
0, | ||
], | ||
"react/jsx-uses-vars": [ | ||
2, | ||
|
@@ -2287,7 +2301,7 @@ exports[`should match ESLint Configuration snapshot 1`] = ` | |
0, | ||
], | ||
"react/react-in-jsx-scope": [ | ||
2, | ||
0, | ||
], | ||
"react/require-render-return": [ | ||
2, | ||
|