Skip to content

Commit 9b1710b

Browse files
initial commit
0 parents  commit 9b1710b

29 files changed

+47910
-0
lines changed

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build/
2+
dist/
3+
node_modules/
4+
.snapshots/
5+
*.min.js

.eslintrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"standard",
5+
"standard-react",
6+
"plugin:prettier/recommended",
7+
"prettier/standard",
8+
"prettier/react",
9+
"plugin:@typescript-eslint/eslint-recommended"
10+
],
11+
"env": {
12+
"node": true
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 2020,
16+
"ecmaFeatures": {
17+
"legacyDecorators": true,
18+
"jsx": true
19+
}
20+
},
21+
"settings": {
22+
"react": {
23+
"version": "16"
24+
}
25+
},
26+
"rules": {
27+
"space-before-function-paren": 0,
28+
"react/prop-types": 0,
29+
"react/jsx-handler-names": 0,
30+
"react/jsx-fragments": 0,
31+
"react/no-unused-prop-types": 0,
32+
"import/export": 0
33+
}
34+
}

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.DS_STORE
2+
dist
3+
node_modules
4+
scripts/flow/*/.flowconfig
5+
.flowconfig
6+
*~
7+
*.pyc
8+
.grunt
9+
_SpecRunner.html
10+
__benchmarks__
11+
build/
12+
remote-repo/
13+
coverage/
14+
.module-cache
15+
fixtures/dom/public/react-dom.js
16+
fixtures/dom/public/react.js
17+
test/the-files-to-test.generated.js
18+
*.log*
19+
chrome-user-data
20+
*.sublime-project
21+
*.sublime-workspace
22+
.idea
23+
*.iml
24+
.vscode
25+
*.swp
26+
*.swo
27+
28+
packages/react-devtools-core/dist
29+
packages/react-devtools-extensions/chrome/build
30+
packages/react-devtools-extensions/chrome/*.crx
31+
packages/react-devtools-extensions/chrome/*.pem
32+
packages/react-devtools-extensions/firefox/build
33+
packages/react-devtools-extensions/firefox/*.xpi
34+
packages/react-devtools-extensions/firefox/*.pem
35+
packages/react-devtools-extensions/shared/build
36+
packages/react-devtools-extensions/.tempUserDataDir
37+
packages/react-devtools-inline/dist
38+
packages/react-devtools-shell/dist
39+
packages/react-devtools-timeline/dist

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"singleQuote": true,
3+
"jsxSingleQuote": true,
4+
"semi": false,
5+
"tabWidth": 2,
6+
"bracketSpacing": true,
7+
"jsxBracketSameLine": false,
8+
"arrowParens": "always",
9+
"trailingComma": "none"
10+
}

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 12
4+
- 10

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# show-more-less
2+
3+
> React library to manage long paragraphs
4+
5+
[![NPM](https://img.shields.io/npm/v/show-more-less.svg)](https://www.npmjs.com/package/show-more-less) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6+
7+
## Install
8+
9+
```bash
10+
npm install --save show-more-less
11+
```
12+
13+
## Usage
14+
15+
```tsx
16+
import React, { Component } from 'react'
17+
18+
import MyComponent from 'show-more-less'
19+
import 'show-more-less/dist/index.css'
20+
21+
class Example extends Component {
22+
render() {
23+
return <MyComponent />
24+
}
25+
}
26+
```
27+
28+
## License
29+
30+
MIT © [iamdipanshusingh](https://github.com/iamdipanshusingh)

example/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This example was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
It is linked to the show-more-less package in the parent directory for development purposes.
4+
5+
You can run `npm install` and then `npm start` to test your package.

0 commit comments

Comments
 (0)