Skip to content

Commit 0bb3334

Browse files
committed
feat: 2.0.1 done
1 parent 59fe639 commit 0bb3334

28 files changed

+1123
-1196
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[
44
"@babel/preset-env",
55
{
6-
"loose": true,
6+
"useBuiltIns": "usage",
77
"modules": false,
88
"targets": "> 0.25%, not dead"
99
}

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
node_modules/*
22
dist/*
3+
example/index.js
4+
webpack.config.js
5+
rollup.config.js

.eslintrc

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
{
22
"parser": "@typescript-eslint/parser",
3-
"plugins": ["@typescript-eslint", "react", "jsx-a11y", "import"],
4-
"extends": [
5-
"airbnb",
6-
"eslint:recommended",
7-
"plugin:@typescript-eslint/eslint-recommended",
8-
"plugin:@typescript-eslint/recommended"
9-
],
3+
"parserOptions": {
4+
"sourceType": "module"
5+
},
6+
"plugins": ["@typescript-eslint", "prettier"],
7+
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
8+
"rules": {
9+
"prettier/prettier": "error"
10+
},
1011
"env": {
1112
"browser": true
13+
},
14+
"settings": {
15+
"react": {
16+
"version": "detect" // https://github.com/yannickcr/eslint-plugin-react#configuration
17+
}
1218
}
1319
}

.npmignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
.vscode
33
.git*
44

5+
src
56
example
67
node_modules
78
npm-debug.log
89
yarn-debug.log
9-
yarn-error.log
10+
yarn-error.log
11+
demo.gif
12+
rollup.config.js
13+
webpack.config.js
14+
tsconfig.json

.prettierignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dist
22
src
33
example
4-
rollup.config.js
54
webpack.config.js
65
*.json
7-
*.md
6+
*.md
7+
.babelrc

.prettierrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"tabWidth": 2,
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"bracketSpacing": true,
6+
"jsxBracketSameLine": true,
7+
"useTabs": false,
8+
"semi": true,
9+
"requirePragma": false,
10+
"proseWrap": "preserve",
11+
"htmlWhitespaceSensitivity": "ignore",
12+
"endOfLine": "auto",
13+
"trailingComma": "none"
14+
}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
2.0.0 (November 15, 2020)
4+
- development by typescript
5+
- migration functional component
6+
37
1.0.4 (June 22, 2020)
48
- add 'onClick' props.
59
- can handle callback when image was clicked

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
1111
[license-url]: https://github.com/kimcoder/react-simple-image-slider/blob/master/LICENSE
1212

13-
Simple ImageSlider Component for ReactJS v16.0<br>
13+
Simple ImageSlider Component for ReactJS v16.13<br>
1414
- Just Two Elements will be used. (for display images)
1515
- Support GPU Render, by default.
1616
- Support Image Preload.
@@ -103,7 +103,7 @@ npm run build:watch // build watch mode
103103
// yarn
104104
yarn example
105105
yarn build
106-
yarn buidl:watch
106+
yarn build:watch
107107
```
108108
If you want to run a test app, should build before do that.<br>
109109

example/App.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import SimpleImageSlider from "..";
1515

1616
class App extends React.Component {
1717
listSubHeader = <ListSubheader><h1>Slider Settings</h1></ListSubheader>;
18-
1918
toggleOptions = ["useGPURender", "showNavs", "showBullets"];
2019

2120
images = [

example/index.js

+30-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

-30
This file was deleted.

0 commit comments

Comments
 (0)