Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitecdd06b

Browse files
authored
chore(ts-workflow): move js files -> ts (#1015)
* chore(ts-workflow): basic setup* chore(ts-workflow): testId -> testid to avoid warning* chore(ts-workflow): resolve type warnings* chore(ts-workflow): rename _app* chore(ts-workflow): basic lint & rules setup* chore(ts-workflow): logic & store with ts support && rules adjust* chore(ts-workflow): tsx test* chore(ts-workflow): add tsc check, resolve errors* chore(ts-workflow): add tsc check, resolve errors* fix(ts-workflow): rootStore TS hint* refactor(ts-workflow): generator container store.js -> store.ts* refactor(ts-workflow): cycle import issue doc* refactor(ts-workflow): generator logic.js -> logic.ts* refactor(ts-workflow): generator index.js && styles.js to ts version* chore(ts-workflow): styles/*.js -> ts && resolve error/warning* chore(ts-workflow): more styles/*.js -> ts && resolve error/warning* chore(ts-workflow): more styles/*.js -> ts && resolve error/warning* chore(ts-workflow): resolve type warning* chore(ts-workflow): more js -> ts* ci(actions): use offical elixir action* fix(build): missing style error* chore(ts-workflow): utils js -> ts* fix(ts-workflow): type warnings* chore(ts-workflow): test/*js -> ts && resolve wanings* chore(ts-workflow): move style & metric files -> ts* chore(ts-workflow): constant files js -> ts
1 parent47bf8c7 commitecdd06b

File tree

412 files changed

+130
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+130
-52
lines changed
File renamed without changes.
File renamed without changes.

‎config/next_offline.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Cache strategies
2-
// By default next-offline will precache all the Next.js webpack emitted files and the user-defined static ones (inside /static)
2+
// By default next-offline will precache all the Next.js webpack emitted
3+
// files and the user-defined static ones (inside /static)
34
// see more: https://github.com/hanford/next-offline
45

56
module.exports={
File renamed without changes.

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@
140140
"@commitlint/cli":"^8.2.0",
141141
"@commitlint/config-conventional":"^8.2.0",
142142
"@groupher/eslint-config-web":"2.0.9",
143+
"@types/jest":"^26.0.20",
144+
"@types/mocha":"^8.2.1",
143145
"@types/ramda":"^0.27.38",
144146
"@typescript-eslint/eslint-plugin":"^4.17.0",
145147
"@typescript-eslint/parser":"^4.17.0",

‎src/components/AlertBar/index.js‎renamed to ‎src/components/AlertBar/index.tsx‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
importReactfrom'react'
8-
importTfrom'prop-types'
98

109
import{buildLog}from'@/utils'
1110

@@ -14,14 +13,12 @@ import { Wrapper } from './styles'
1413
/* eslint-disable-next-line */
1514
constlog=buildLog('c:AlertBar:index')
1615

17-
constAlertBar=({ children})=>{
18-
return<Wrappertestid="alertBar">{children}</Wrapper>
16+
typeIProps={
17+
children:React.ReactNode
1918
}
2019

21-
AlertBar.propTypes={
22-
children:T.oneOfType([T.string,T.node]).isRequired,
20+
constAlertBar:React.FC<IProps>=({ children})=>{
21+
return<Wrappertestid="alertBar">{children}</Wrapper>
2322
}
2423

25-
AlertBar.defaultProps={}
26-
2724
exportdefaultReact.memo(AlertBar)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp