Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial setup for PSR2 ruleset and eslint standard ruleset * ESLint travis build * Properly trigger eslint from npm script * Linting JS files * Forgot to npm install all the things * PHPCS fixes * Npm install only eslint package
- Loading branch information
Showing
13 changed files
with
105 additions
and
76 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 @@ | ||
/node_modules/** | ||
/vendor/** | ||
/assets/dist/** | ||
|
||
webpack.mix.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,16 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
} | ||
}, | ||
"extends": "wordpress", | ||
"rules": { | ||
"indent": ["error", "tab"], | ||
"no-tabs": 0, | ||
"no-unused-vars": 0 | ||
} | ||
} |
This file was deleted.
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 was deleted.
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,20 +1,20 @@ | ||
class Carousel { | ||
|
||
constructor() { | ||
this.init(); | ||
} | ||
constructor() { | ||
this.init(); | ||
} | ||
|
||
init() { | ||
$( '.fade-carousel' ).slick({ | ||
dots: true, | ||
arrows: false, | ||
autoplay: true, | ||
infinite: true, | ||
speed: 500, | ||
fade: true, | ||
cssEase: 'linear' | ||
}); | ||
} | ||
init() { | ||
$( '.fade-carousel' ).slick({ | ||
dots: true, | ||
arrows: false, | ||
autoplay: true, | ||
infinite: true, | ||
speed: 500, | ||
fade: true, | ||
cssEase: 'linear' | ||
}); | ||
} | ||
} | ||
|
||
export default Carousel; |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="AWPS PSR2 Coding Standard"> | ||
<description>PSR2 with tabs instead of spaces.</description> | ||
<arg name="tab-width" value="4"/> | ||
<rule ref="PSR2"> | ||
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | ||
</rule> | ||
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | ||
<rule ref="Generic.WhiteSpace.ScopeIndent"> | ||
<properties> | ||
<property name="indent" value="4"/> | ||
<property name="tabIndent" value="true"/> | ||
</properties> | ||
</rule> | ||
<!-- Class Name: Pascal Case --> | ||
<!-- Method and property Name: Camel Case --> | ||
<!-- Global functions and variables: Lower underscore case --> | ||
</ruleset> |