-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create test case for import-js/eslint-plugin-import#1086
- Loading branch information
0 parents
commit ea3550d
Showing
6 changed files
with
1,607 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parser": "typescript-eslint-parser", | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"allowImportExportEverywhere": true, | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"import" | ||
], | ||
"rules": { | ||
"import/order": [ | ||
"error", | ||
{ | ||
"newlines-between": "never", | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.vscode |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Purpose | ||
|
||
Reproduce issue [benmosher/eslint-plugin-import#1086](https://github.com/benmosher/eslint-plugin-import/issues/1086) | ||
|
||
# Running | ||
|
||
* Install dependencies | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
* Run eslint | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
This will pass because it's only running the test, not trying or fix it. | ||
|
||
* Reproduce issue | ||
|
||
``` | ||
npm start -- --fix | ||
``` | ||
|
||
This will run until it runs out of memory. This demonstrates the issue in [benmosher/eslint-plugin-import#1086](https://github.com/benmosher/eslint-plugin-import/issues/1086). |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as React from 'react'; | ||
import something from './TypographyVariant'; | ||
import * as PropTypes from 'prop-types'; |
Oops, something went wrong.