Enable ESLint import recommended rules (#23315)
This commit is contained in:
parent
db2c58d47a
commit
eddfb33dfe
7 changed files with 22 additions and 23 deletions
|
@ -5,6 +5,7 @@ module.exports = {
|
|||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:jsx-a11y/recommended',
|
||||
'plugin:import/recommended',
|
||||
],
|
||||
|
||||
env: {
|
||||
|
@ -177,6 +178,7 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
|
||||
// See https://github.com/import-js/eslint-plugin-import/blob/main/config/recommended.js
|
||||
'import/extensions': [
|
||||
'error',
|
||||
'always',
|
||||
|
@ -195,7 +197,6 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
],
|
||||
'import/no-unresolved': 'error',
|
||||
'import/no-webpack-loader-syntax': 'error',
|
||||
|
||||
'promise/catch-or-return': [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue