Skip to content

Commit 9350f49

Browse files
committed
Update
1 parent 5bf2801 commit 9350f49

17 files changed

+10920
-36025
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.babelrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"presets": ["env", "react", "stage-0"]
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"css-modules-transform",
8+
"@babel/plugin-proposal-class-properties",
9+
"@babel/plugin-syntax-object-rest-spread"
10+
]
311
}

.eslintrc

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
// React specific linting rules for ESLint
2424
//
2525
//"react/display-name": 0, // Prevent missing displayName in a React component definition
26-
"react/jsx-boolean-value": [
27-
2,
28-
"always"
29-
], // Enforce boolean attributes notation in JSX
26+
"react/jsx-boolean-value": [2, "always"], // Enforce boolean attributes notation in JSX
3027
"react/jsx-no-undef": 2, // Disallow undeclared variables in JSX
3128
"react/jsx-quotes": 0,
3229
"react/jsx-sort-prop-types": 0, // Enforce propTypes declarations alphabetical sorting
@@ -39,16 +36,7 @@
3936
"react/no-unknown-property": 2, // Prevent usage of unknown DOM property
4037
"react/prop-types": 2, // Prevent missing props validation in a React component definition
4138
"react/react-in-jsx-scope": 2, // Prevent missing React when using JSX
42-
"react/require-extension": [
43-
1,
44-
{
45-
"extensions": [
46-
".js"
47-
]
48-
}
49-
], // Restrict file extensions that may be required
5039
"react/self-closing-comp": 2, // Prevent extra closing tags for components without children
51-
"react/wrap-multilines": 2 // Prevent missing parentheses around multilines JSX
5240
},
5341
"globals": {
5442
"jQuery": true,
@@ -58,9 +46,7 @@
5846
"NProgress": true,
5947
"cytoscape": true
6048
},
61-
"plugins": [
62-
"react"
63-
],
49+
"plugins": ["react"],
6450
"ecmaFeatures": {
6551
"arrowFunctions": true,
6652
"binaryLiterals": true,

.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
24
"singleQuote": true,
3-
"semi": false
5+
"semi": false,
6+
"arrowParens": "avoid"
47
}

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
alt="Downloads">
2121
</a>
2222

23-
<a href="https://david-dm.org/cht8687/react-text-collapse.svg">
24-
<img src="https://david-dm.org/cht8687/react-text-collapse.svg?style=flat-square"
25-
alt="Dependency Status">
26-
</a>
27-
2823
<a href="https://github.com/cht8687/react-text-collapse/blob/master/LICENSE">
2924
<img src="https://img.shields.io/npm/l/react-text-collapse.svg?style=flat-square"
3025
alt="License">
@@ -64,10 +59,14 @@ $ npm install --save react-text-collapse
6459
```js
6560
<ReactTextCollapse options={TEXT_COLLAPSE_OPTIONS}>
6661
<p>
67-
React text collapse is awesome. React text collapse is awesome.<br />
68-
React text collapse is awesome. React text collapse is awesome.<br />
69-
React text collapse is awesome. React text collapse is awesome.<br />
70-
React text collapse is awesome. React text collapse is awesome.<br />
62+
React text collapse is awesome. React text collapse is awesome.
63+
<br />
64+
React text collapse is awesome. React text collapse is awesome.
65+
<br />
66+
React text collapse is awesome. React text collapse is awesome.
67+
<br />
68+
React text collapse is awesome. React text collapse is awesome.
69+
<br />
7170
</p>
7271
</ReactTextCollapse>
7372
```
@@ -109,4 +108,11 @@ open http://localhost:8080/webpack-dev-server/
109108

110109
MIT
111110

112-
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
111+
## Contributors
112+
113+
Thanks to these wonderful developers for helping this project:
114+
115+
<p float="left">
116+
<a href="https://github.com/arojunior"><img src="https://avatars.githubusercontent.com/u/7604033?v=4" width="50" height="50" /></a>
117+
<a href="https://github.com/validalias"><img src="https://avatars.githubusercontent.com/u/44221844?v=4" width="50" height="50" /></a>
118+
</p>

0 commit comments

Comments
 (0)