From 4e45f1eeda7795fe884df10a43c058641c44db0a Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Sun, 10 Dec 2017 15:25:46 +0200 Subject: [PATCH] More info in editorconfig --- .editorconfig | 11 ++++++----- README.md | 8 ++++++-- package.json | 2 -- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8951c39..19afc83 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,10 +2,11 @@ root = true [*] -indent_style = space -indent_size = 2 -tab_width = 2 -end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true +end_of_line = lf +indent_size = 2 +indent_style = space insert_final_newline = true +max_line_length = 100 +tab_width = 2 +trim_trailing_whitespace = true diff --git a/README.md b/README.md index a68ffe0..d262c37 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,10 @@ http://api.jquery.com/one/ --> ```javascript -$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething); +$('#yourElement').one( + 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', + doSomething, +); ``` [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: ```javascript $.fn.extend({ animateCss: function(animationName, callback) { - var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; + var animationEnd = + 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; this.addClass('animated ' + animationName).one(animationEnd, function() { $(this).removeClass('animated ' + animationName); if (callback) { diff --git a/package.json b/package.json index 99da6f8..ebb9257 100644 --- a/package.json +++ b/package.json @@ -39,10 +39,8 @@ }, "prettier": { "bracketSpacing": false, - "printWidth": 120, "proseWrap": "never", "singleQuote": true, - "tabWidth": 2, "trailingComma": "all" }, "scripts": {