]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Lint: remove EOL spaces
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 12 Nov 2016 15:13:06 +0000 (16:13 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 15 Nov 2016 18:16:38 +0000 (19:16 +0100)
Remove spaces where they are at the end of a line

.sass-lint.yml
js/foundation.accordionMenu.js
js/foundation.util.mediaQuery.js
js/foundation.util.triggers.js
scss/components/_card.scss
scss/components/_off-canvas.scss
scss/components/_switch.scss
scss/forms/_progress.scss
scss/forms/_select.scss
scss/util/_unit.scss

index d60f1b4e43964a3fb317fd39567717d298251285..ae8aeba562a2e7c5024807368682290b89816945 100644 (file)
@@ -1,6 +1,6 @@
 # The following scss-lint Linters are not yet supported by sass-lint:
 # ElsePlacement, PropertyCount, SelectorDepth, UnnecessaryParentReference
-# 
+#
 # The following settings/values are unsupported by sass-lint:
 # Linter Indentation, option "allow_non_nested_indentation"
 # Linter Indentation, option "character"
@@ -11,7 +11,7 @@ files:
   include: 'scss/**/*.scss'
 
 options:
-  formatter: stylish 
+  formatter: stylish
   merge-default-rules: false
 
 rules:
@@ -35,101 +35,101 @@ rules:
   empty-line-between-blocks:
     - 1
     - ignore-single-line-rulesets: true
-  
+
   extends-before-declarations: 1
 
   extends-before-mixins: 1
-  
+
   final-newline:
     - 1
     - include: true
-  
+
   force-attribute-nesting: 1
-  
+
   force-element-nesting: 1
-  
+
   force-pseudo-nesting: 1
-  
+
   function-name-format:
     - 1
     - allow-leading-underscore: true
       convention: hyphenatedlowercase
-  
+
   hex-length:
     - 1
     - style: short
-  
+
   hex-notation:
     - 1
     - style: lowercase
-  
+
   id-name-format:
     - 1
     - convention: '([a-z0-9]+-?)+'
-  
+
   indentation:
     - 1
     - size: 2
-  
+
   leading-zero:
     - 1
     - include: true
-  
+
   mixin-name-format:
     - 1
     - allow-leading-underscore: true
       convention: hyphenatedlowercase
-  
+
   mixins-before-declarations: 1
-  
+
   nesting-depth:
     - 1
     - max-depth: 3
-  
+
   no-color-keywords: 1
-  
+
   no-color-literals: 1
-  
+
   no-css-comments: 0
-  
+
   no-debug: 1
-  
+
   no-duplicate-properties: 1
-  
+
   no-empty-rulesets: 1
-  
+
   no-ids: 1
-  
+
   no-important: 0
-  
+
   no-invalid-hex: 1
-  
+
   no-mergeable-selectors: 1
-  
+
   no-misspelled-properties:
     - 1
     - extra-properties: []
-  
+
   no-qualifying-elements:
     - 1
     - allow-element-with-attribute: false
       allow-element-with-class: false
       allow-element-with-id: false
-  
+
   no-trailing-zero: 1
-  
+
   no-url-protocols: 1
-  
+
   no-vendor-prefixes:
      - 1
      - ignore-non-standard: true
-  
+
   placeholder-in-extend: 1
-  
+
   placeholder-name-format:
     - 1
     - convention: '([a-z0-9]+-?)+'
-  
+
   property-sort-order:
     - 1
     -
@@ -363,46 +363,46 @@ rules:
   quotes:
     - 1
     - style: single
-  
+
   shorthand-values: 1
-  
+
   single-line-per-selector: 0
-  
+
   space-after-bang:
     - 1
     - include: false
-  
+
   space-after-colon:
     - 1
     - include: true
-  
+
   space-after-comma: 1
-  
+
   space-before-bang:
     - 1
     - include: true
-  
+
   space-before-brace:
     - 1
     - include: true
-  
+
   space-before-colon: 1
-  
+
   space-between-parens:
     - 1
     - include: false
-  
+
   trailing-semicolon: 1
-  
+
   url-quotes: 1
-  
+
   variable-for-property:
     - 0
     - properties: []
-  
+
   variable-name-format:
     - 1
     - allow-leading-underscore: true
       convention: hyphenatedlowercase
-  
+
   zero-unit: 1
index fe0385cf807071b08210699983d0d03e4b48211c..fb3d28bdd2e8491b217ec8354322f9ee69b3170a 100644 (file)
@@ -103,7 +103,7 @@ class AccordionMenu {
           $elements = $element.parent('ul').children('li'),
           $prevElement,
           $nextElement,
-          $target = $element.children('[data-submenu]'); 
+          $target = $element.children('[data-submenu]');
           _this.setIndex(e.target);
 
       $elements.each(function(i) {
@@ -209,7 +209,7 @@ class AccordionMenu {
    * @function
    * @param {jQuery} $target - the submenu to toggle
    */
-  toggle($target){  
+  toggle($target){
     if(!$target.is(':animated')) {
       if (!$target.is(':hidden')) {
         this.up($target);
index d1adca22567430ce857192a6dca89b47a1f468fb..9edd33d57a9eb6381b12daa4f48ff2c7ad8f6752 100644 (file)
@@ -63,7 +63,7 @@ var MediaQuery = {
   },
 
   /**
-   * Checks if the screen matches to a breakpoint. 
+   * Checks if the screen matches to a breakpoint.
    * @function
    * @param {String} size - Name of the breakpoint to check, either 'small only' or 'small'. Omitting 'only' falls back to using atLeast() method.
    * @returns {Boolean} `true` if the breakpoint matches, `false` if it does not.
index b9cbfda4fa380ebd658dd76bca328566c0939d60..69ce8b7473d302552ea43925e68d55140bfb949d 100644 (file)
@@ -165,7 +165,7 @@ function mutateListener(debounce) {
 function eventsListener() {
   if(!MutationObserver){ return false; }
   let nodes = document.querySelectorAll('[data-resize], [data-scroll], [data-mutate]');
-  
+
   //element callback
   var listeningElementsMutation = function (mutationRecordsList) {
       var $target = $(mutationRecordsList[0].target);
@@ -174,14 +174,14 @@ function eventsListener() {
       switch (mutationRecordsList[0].type) {
 
         case "attributes":
-          if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") { 
-                       $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]); 
+          if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
+                       $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
                  }
-                 if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") { 
+                 if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
                        $target.triggerHandler('resizeme.zf.trigger', [$target]);
                   }
                  if (mutationRecordsList[0].attributeName === "style") {
-                         $target.closest("[data-mutate]").attr("data-events","mutate"); 
+                         $target.closest("[data-mutate]").attr("data-events","mutate");
                          $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
                  }
                  break;
@@ -190,7 +190,7 @@ function eventsListener() {
                  $target.closest("[data-mutate]").attr("data-events","mutate");
                  $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
           break;
-                 
+
         default:
           return false;
         //nothing
index 280f40a2dfcecdc6ee2eb995ea198e87e6f20692..e6305730bf47eaf5ef9224795d096feedc1181c0 100644 (file)
@@ -118,4 +118,4 @@ $card-margin: $global-margin !default;
   .card-section {
     @include card-section;
   }
-}
\ No newline at end of file
+}
index 8ed13b49d46f19d11326275b5cbd19461f1f06be..505252d2a97b878976a305722bd98870f33974ef 100644 (file)
@@ -66,7 +66,7 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
     @include clearfix;
     position: relative;
     width: 100%;
-    min-height: 100%; 
+    min-height: 100%;
 
     transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
   }
index 10b8203df96c9be776b602d4f279d35ae089bee0..a2099f164d9ef7c2f2d5e181397a41a4b0538c69 100644 (file)
@@ -179,7 +179,7 @@ $switch-paddle-transition: all 0.25s ease-out !default;
   $paddle-active-offest: $switch-width - $paddle-width - $paddle-offset;
 
   height: $switch-height;
-  
+
   .switch-paddle {
     width: $switch-width;
     height: $switch-height;
index b48b81e5e26867e9f72f0419d2f7ba9b73406884..32efb305c12015e4683e88dc2975046f2e185bc7 100644 (file)
@@ -82,14 +82,14 @@ $progress-radius: $global-radius !default;
         }
       }
     }
-    
-    // For IE and Edge  
+
+    // For IE and Edge
     &::-ms-fill{
       @if hasvalue($progress-radius) {
-        border-radius: $progress-radius;  
+        border-radius: $progress-radius;
       }
 
-      border: 0;     
-    } 
+      border: 0;
+    }
   }
 }
index 985d7324d9d0b2f2cb74860536833450cbea7de2..a4082b05510b38546cae1656d7f6909277917139 100644 (file)
@@ -61,7 +61,7 @@ $select-radius: $global-radius !default;
       transition: $input-transition;
     }
   }
-  
+
   // Disabled state
   &:disabled {
     background-color: $input-background-disabled;
index 1b5613a5d83a5e9c2c166e37cc9db56db9050649..d7129dbf3b64a88b600ff7a09da6aed9e5ad5ddc 100644 (file)
@@ -39,7 +39,7 @@ $global-font-size: 100% !default;
   @if unit($base) == '%' {
     $base: ($base / 100%) * 16px;
   }
-  
+
   // Using rem as base allows correct scaling
   @if unit($base) == 'rem' {
     $base: strip-unit($base) * 16px;