Skip to content

Commit 4e45f1e

Browse files
committed
More info in editorconfig
1 parent 3b36436 commit 4e45f1e

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.editorconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
root = true
33

44
[*]
5-
indent_style = space
5+
charset = utf-8
6+
end_of_line = lf
67
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 100
711
tab_width = 2
8-
end_of_line = lf
9-
charset = utf-8
1012
trim_trailing_whitespace = true
11-
insert_final_newline = true

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ http://api.jquery.com/one/
123123
-->
124124

125125
```javascript
126-
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);
126+
$('#yourElement').one(
127+
'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',
128+
doSomething,
129+
);
127130
```
128131

129132
[View a video tutorial](https://www.youtube.com/watch?v=CBQGl6zokMs) on how to use Animate.css with jQuery here.
@@ -135,7 +138,8 @@ You can also extend jQuery to add a function that does it all for you:
135138
```javascript
136139
$.fn.extend({
137140
animateCss: function(animationName, callback) {
138-
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
141+
var animationEnd =
142+
'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
139143
this.addClass('animated ' + animationName).one(animationEnd, function() {
140144
$(this).removeClass('animated ' + animationName);
141145
if (callback) {

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@
3939
},
4040
"prettier": {
4141
"bracketSpacing": false,
42-
"printWidth": 120,
4342
"proseWrap": "never",
4443
"singleQuote": true,
45-
"tabWidth": 2,
4644
"trailingComma": "all"
4745
},
4846
"scripts": {

0 commit comments

Comments
 (0)