Skip to content

Commit 963706f

Browse files
treetipsusername
and
username
authored
refactor: add support for react in ESLint (#4)
Co-authored-by: username <[email protected]>
1 parent 0b86108 commit 963706f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: .vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
},
1010
"files.insertFinalNewline": true,
1111
"javascript.format.enable": false,
12+
"eslint.enable": true,
13+
"eslint.format.enable": true,
1214
"editor.codeActionsOnSave": {
13-
"source.fixAll.tslint": true
15+
"source.fixAll.eslint": true
1416
},
1517
"[javascript]": {
1618
"editor.formatOnSave": true,

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ This is a sample for `server-side rendering` using `TypeScript` , `Next.js` , `R
44

55
I also used the latest features such as `createSlice` , `createAsyncThunk` , and `createEntityAdapter` .
66

7-
`VSCode` , `prettier` and `TSLint` provide real-time formatting, syntax checking and organizing of unused imports.
7+
`VSCode` , `prettier` and `ESLint` provide real-time formatting, syntax checking and organizing of unused imports.
88

99
これは、 `TypeScript` , `Next.js` , `Redux Toolkit` , `Material-UI` を使った `サーバーサイドレンダリング` に対応したサンプルです。
1010

1111
`createSlice``createAsyncThunk``createEntityAdapter` といった最新機能も使ってみました。
1212

13-
`VSCode``prettier``TSLint` によって、リアルタイムに整形と構文チェックと未使用 import の整理が行われます。
13+
`VSCode``prettier``ESLint` によって、リアルタイムに整形と構文チェックと未使用 import の整理が行われます。
1414

1515
## Live demo
1616

@@ -30,7 +30,7 @@ I also used the latest features such as `createSlice` , `createAsyncThunk` , and
3030
- [createEntityAdapter](https://redux-toolkit.js.org/api/createEntityAdapter)
3131
- [createSelector](https://redux-toolkit.js.org/api/createSelector)
3232
- It using most of the major features of the redux toolkit !!
33-
- [TSLint](https://palantir.github.io/tslint/)
33+
- [ESLint](https://eslint.org/)
3434

3535
## Requirement
3636

@@ -46,7 +46,7 @@ I also used the latest features such as `createSlice` , `createAsyncThunk` , and
4646

4747
- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
4848
- [Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
49-
- [TSLint](https://marketplace.visualstudio.com/items?itemName=eg2.tslint)
49+
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
5050

5151
## Usage
5252

0 commit comments

Comments
 (0)