You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
import './index.css';
import * as React from 'react';
import App from './App';
import ReactDOM from 'react-dom';
ReactDOM.render(<App />, document.getElementById('root'));
Actual Behavior:
ERROR: src/index.tsx[1, 1]: All imports of type "None" must occur before all imports of type "All"
Expected Behavior:
Should not have any errors
The text was updated successfully, but these errors were encountered:
If you look at the code, inside the _processMemberSyntaxSortOrder method, the sortOptions does not add the 'none' option to the order array because the if statement of (memberSyntaxTypeMap['none']) evaluates to 0, which is false, and thus is skips adding the option. Changing this to explicitly check for undefined instead of using the "evaluates to false" shortcut should resolve this issue.
It was causing sort-imports to incorrectly state that none must occur before all imports of type all in the above member-syntax-sort-order: ['none', 'all', 'single', 'multiple', 'alias'] even though all none imports were above all imports.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tslint and typescript versions
tslint.json configuration
Typescript code being linted:
Actual Behavior:
ERROR: src/index.tsx[1, 1]: All imports of type "None" must occur before all imports of type "All"
Expected Behavior:
Should not have any errors
The text was updated successfully, but these errors were encountered: