Skip to content

Commit da25eb3

Browse files
authored
fix: simple sort plugin setup fix (#1)
1 parent be1e337 commit da25eb3

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.eslintrc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"ecmaVersion": 2018,
99
"sourceType": "module"
1010
},
11-
"plugins": ["@typescript-eslint"],
11+
"plugins": [
12+
"@typescript-eslint",
13+
"simple-import-sort"
14+
],
1215
"extends": [
1316
"prettier",
1417
"prettier/react",
@@ -30,6 +33,7 @@
3033
"@typescript-eslint/prefer-interface": "off",
3134
"@typescript-eslint/interface-name-prefix": "off",
3235
"@typescript-eslint/camelcase": "off",
36+
"simple-import-sort/sort": "warn",
3337
"no-console": "off",
3438
"sort-keys": "off",
3539
"sort-imports": "off"
@@ -38,4 +42,4 @@
3842
"browser": true,
3943
"es6": true
4044
}
41-
}
45+
}

src/App.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
21
import { render } from '@testing-library/react';
2+
import React from 'react';
33

44
import App from './App';
55

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import './App.scss';
2+
13
import React from 'react';
24

35
import logo from './logo.svg';
4-
import './App.scss';
56

67
function App() {
78
return (

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import './index.scss';
2+
13
import React from 'react';
24
import ReactDOM from 'react-dom';
35

4-
import './index.scss';
56
import App from './App';
67
import * as serviceWorker from './serviceWorker';
78

0 commit comments

Comments
 (0)