This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
by iamdroid: Added SASS/JS linting Gulp task.
- Loading branch information
Showing
25 changed files
with
639 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
js/animation.js | ||
js/jquery.mobile-events.min.js | ||
js/jquery.ripple.js | ||
js/misc.js | ||
js/prism.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"extends": "eslint-config-airbnb", | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"Drupal": true, | ||
"drupalSettings": true, | ||
"drupalTranslations": true, | ||
"domready": true, | ||
"jQuery": true, | ||
"_": true, | ||
"matchMedia": true, | ||
"Backbone": true, | ||
"Modernizr": true, | ||
"CKEDITOR": true | ||
}, | ||
"rules": { | ||
"consistent-return": [0], | ||
"no-underscore-dangle": [0], | ||
"max-nested-callbacks": [1, 3], | ||
"import/no-mutable-exports": [1], | ||
"no-plusplus": [1, { | ||
"allowForLoopAfterthoughts": true | ||
}], | ||
"no-param-reassign": [0], | ||
"no-prototype-builtins": [0], | ||
"valid-jsdoc": [1, { | ||
"prefer": { | ||
"returns": "return", | ||
"property": "prop" | ||
}, | ||
"requireReturn": false | ||
}], | ||
"brace-style": ["error", "stroustrup"], | ||
"no-unused-vars": [1] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
options: | ||
formatter: stylish | ||
rules: | ||
# Extends | ||
extends-before-mixins: 1 | ||
extends-before-declarations: 1 | ||
placeholder-in-extend: 1 | ||
|
||
# Mixins | ||
mixins-before-declarations: 1 | ||
|
||
# Line Spacing | ||
one-declaration-per-line: 1 | ||
empty-line-between-blocks: 1 | ||
single-line-per-selector: 1 | ||
|
||
# Disallows | ||
no-attribute-selectors: 0 | ||
no-color-hex: 0 | ||
no-color-keywords: 1 | ||
no-color-literals: 1 | ||
no-combinators: 0 | ||
no-css-comments: 0 | ||
no-debug: 1 | ||
no-disallowed-properties: 0 | ||
no-duplicate-properties: 0 | ||
no-empty-rulesets: 1 | ||
no-extends: 0 | ||
no-ids: 0 | ||
no-important: 1 | ||
no-invalid-hex: 1 | ||
no-mergeable-selectors: 1 | ||
no-misspelled-properties: 1 | ||
no-qualifying-elements: 1 | ||
no-trailing-whitespace: 1 | ||
no-trailing-zero: 1 | ||
no-transition-all: 1 | ||
no-universal-selectors: 0 | ||
no-url-domains: 1 | ||
no-url-protocols: 1 | ||
no-vendor-prefixes: 0 | ||
no-warn: 1 | ||
property-units: 0 | ||
|
||
# Nesting | ||
declarations-before-nesting: 1 | ||
force-attribute-nesting: 1 | ||
force-element-nesting: 1 | ||
force-pseudo-nesting: 1 | ||
|
||
# Name Formats | ||
class-name-format: 1 | ||
function-name-format: 1 | ||
id-name-format: 0 | ||
mixin-name-format: 1 | ||
placeholder-name-format: 1 | ||
variable-name-format: 1 | ||
|
||
# Style Guide | ||
attribute-quotes: 1 | ||
bem-depth: 0 | ||
border-zero: 1 | ||
brace-style: 1 | ||
clean-import-paths: 1 | ||
empty-args: 1 | ||
hex-length: 1 | ||
hex-notation: 1 | ||
indentation: 1 | ||
leading-zero: 0 | ||
max-line-length: 0 | ||
max-file-line-count: 0 | ||
nesting-depth: 1 | ||
property-sort-order: 1 | ||
pseudo-element: 0 | ||
quotes: 1 | ||
shorthand-values: 1 | ||
url-quotes: 1 | ||
variable-for-property: 1 | ||
zero-unit: 1 | ||
|
||
# Inner Spacing | ||
space-after-comma: 0 | ||
space-before-colon: 1 | ||
space-after-colon: 1 | ||
space-before-brace: 1 | ||
space-before-bang: 1 | ||
space-after-bang: 1 | ||
space-between-parens: 1 | ||
space-around-operator: 1 | ||
|
||
# Final Items | ||
trailing-semicolon: 1 | ||
final-newline: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(function (window, $) { | ||
$(function() { | ||
$(function () { | ||
|
||
}); | ||
})(window, jQuery); | ||
}(window, jQuery)); |
Oops, something went wrong.