Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add CSpell to check typo #228

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: Add CSpell to check typo
  • Loading branch information
dev-yakuza committed May 11, 2024
commit 39a575777dfddf9af3ccdae44a614f7cf800cda7
11 changes: 11 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2",
"ignorePaths": ["*.svg", "*.lock", "*.snap", ".gitignore", "Podfile", "ios/", "Gemfile", "android/"],
"words": [
"lefthook",
"yakuza",
"Deku",
"tada",
"Podfile"
]
}
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml → .github/workflows/check_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ jobs:
run: npm install
- name: Prettier
run: npm run format
- name: CSpell
run: npm run cspell
- name: ESLint
run: npm run lint
37 changes: 14 additions & 23 deletions Develop/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ const App = () => {
style={Style.contentsContainer}
onLayout={(event: LayoutChangeEvent) => {
setImageWidth(event.nativeEvent.layout.width);
}}
>
}}>
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand All @@ -65,8 +64,7 @@ const App = () => {
height: 250,
}}
source={{
uri:
'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
uri: 'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
}}
onLongPressOriginImage={() => console.log('onLongPressOriginImage')}
onTap={() => console.log('onTap')}
Expand All @@ -85,7 +83,7 @@ const App = () => {
propriety. She amiable all without say spirits shy clothes morning.
Frankness in extensive to belonging improving so certainty.
Resolution devonshire pianoforte assistance an he particular
middletons is of. Explain ten man uncivil engaged conduct. Am
middleton is of. Explain ten man uncivil engaged conduct. Am
likewise betrayed as declared absolute do. Taste oh spoke about no
solid of hills up shade. Occasion so bachelor humoured striking by
attended doubtful be it.
Expand All @@ -99,8 +97,7 @@ const App = () => {
height: 250,
}}
source={{
uri:
'https://cdn.pixabay.com/photo/2019/07/25/18/58/church-4363258_960_720.jpg',
uri: 'https://cdn.pixabay.com/photo/2019/07/25/18/58/church-4363258_960_720.jpg',
}}
/>
<Text style={Style.text}>
Expand Down Expand Up @@ -171,8 +168,7 @@ const App = () => {
height: 100,
justifyContent: 'center',
alignItems: 'center',
}}
>
}}>
<Text>CloseButton</Text>
</TouchableOpacity>
)}
Expand All @@ -194,8 +190,7 @@ const App = () => {
height: 250,
}}
source={{
uri:
'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
uri: 'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
}}
onOpen={() => {
console.log('onOpen');
Expand All @@ -207,7 +202,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand All @@ -227,14 +222,13 @@ const App = () => {
height: 250,
}}
source={{
uri:
'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
uri: 'https://cdn.pixabay.com/photo/2018/01/11/09/52/three-3075752_960_720.jpg',
}}
/>
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand All @@ -246,8 +240,7 @@ const App = () => {
raptures amounted occasion. One boy assure income spirit lovers set.
</Text>
<Text
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}
>
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}>
resizeMode: "center"{'\n'}modalImageResizeMode: none{'\n'}
modalImageResizeMode will use resizeMode
</Text>
Expand All @@ -261,8 +254,7 @@ const App = () => {
source={require('./images/small.png')}
/>
<Text
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}
>
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}>
resizeMode: "center"{'\n'}modalImageResizeMode: "contain"
</Text>
<ImageModal
Expand All @@ -276,8 +268,7 @@ const App = () => {
source={require('./images/small.png')}
/>
<Text
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}
>
style={{marginTop: 16, paddingHorizontal: 16, fontWeight: 'bold'}}>
resizeMode: "center"{'\n'}modalImageResizeMode: "cover"
</Text>
<ImageModal
Expand All @@ -293,7 +284,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand Down
12 changes: 6 additions & 6 deletions Example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand Down Expand Up @@ -84,7 +84,7 @@ const App = () => {
propriety. She amiable all without say spirits shy clothes morning.
Frankness in extensive to belonging improving so certainty.
Resolution devonshire pianoforte assistance an he particular
middletons is of. Explain ten man uncivil engaged conduct. Am
middleton is of. Explain ten man uncivil engaged conduct. Am
likewise betrayed as declared absolute do. Taste oh spoke about no
solid of hills up shade. Occasion so bachelor humoured striking by
attended doubtful be it.
Expand Down Expand Up @@ -203,7 +203,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand All @@ -229,7 +229,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand Down Expand Up @@ -259,7 +259,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand Down Expand Up @@ -315,7 +315,7 @@ const App = () => {
<Text style={Style.text}>
Affronting discretion as do is announcing. Now months esteem oppose
nearer enable too six. She numerous unlocked you perceive speedily.
Affixed offence spirits or ye of offices between. Real on shot it
Affixed offense spirits or ye of offices between. Real on shot it
were four an as. Absolute bachelor rendered six nay you juvenile.
Vanity entire an chatty to.
</Text>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Joel Arvidsson
Copyright (c) 2015 Deku(dev-yakuza)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 5 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
pre-commit:
parallel: true
commands:
pretty:
Pretty:
glob: './src/**'
run: npx prettier --check {staged_files}
linter:
ESLint:
glob: 'src/**/*.{ts,tsx}'
run: npx eslint {staged_files}
run: npx eslint {staged_files}
CSpell:
run: npx cspell --gitignore --show-suggestions --no-must-find-files {staged_files}
Loading
Loading