Navigation Menu

Skip to content

Commit

Permalink
Update: Disable import/no-unassigned-imports ⚙️ (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed Sep 13, 2020
1 parent fa3ae79 commit f5eae35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/__snapshots__/index.spec.js.snap
Expand Up @@ -318,7 +318,7 @@ Object {
"import/no-relative-parent-imports": "off",
"import/no-restricted-paths": "off",
"import/no-self-import": "error",
"import/no-unassigned-import": "error",
"import/no-unassigned-import": "off",
"import/no-unresolved": Array [
"error",
Object {
Expand Down Expand Up @@ -1374,7 +1374,7 @@ Object {
"import/no-relative-parent-imports": "off",
"import/no-restricted-paths": "off",
"import/no-self-import": "error",
"import/no-unassigned-import": "error",
"import/no-unassigned-import": "off",
"import/no-unresolved": Array [
"error",
Object {
Expand Down
6 changes: 3 additions & 3 deletions src/rules/plugin-import.js
Expand Up @@ -180,9 +180,9 @@ module.exports = {
// configure a useful number.
'import/max-dependencies': 'off',

// Prevents unassigned imports, this should be disabled as necessary in a codebase with
// an explanation of the side effect caused by the import
'import/no-unassigned-import': 'error',
// Allow unassigned imports, it's surprisingly irritating to have to allow
// each occurence
'import/no-unassigned-import': 'off',

// Prevent importing the default as if it were named
'import/no-named-default': 'error',
Expand Down

0 comments on commit f5eae35

Please sign in to comment.