Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
add @wordpress/scripts package (#363)
Browse files Browse the repository at this point in the history
* add @wordpress/scripts package

* Only lint style.css and the files in the assets folder

* Add `.stylelintrc.json` file excluding the `no-descending-specificity` rule.

* Remove erronous trailing comma

* Add `font-family-no-missing-generic-family-keyword` rule

* use the ES5 ruleset

* Use the right ES5 rulesets

* Use the browser environment
  • Loading branch information
Ismail-elkorchi authored and ianbelanger79 committed Sep 21, 2019
1 parent 9f23718 commit 1025b52
Show file tree
Hide file tree
Showing 5 changed files with 12,416 additions and 79 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
@@ -0,0 +1,6 @@
{
"extends": [ "plugin:@wordpress/eslint-plugin/es5" ],
"env": {
"browser": true
}
}
7 changes: 7 additions & 0 deletions .stylelintrc.json
@@ -0,0 +1,7 @@
{
"extends": "stylelint-config-wordpress",
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null
}
}
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -29,6 +29,7 @@ allow_failures:

before_install:
- composer install
- npm install

script:
# Validate the composer.json file.
Expand All @@ -40,3 +41,9 @@ script:

# Check the code against the standards as documented in the phpcs.xml.dist file.
- if [[ "$PHPCS" == 1 ]]; then composer checkcs; fi

# Run the theme through lint:js checker as defined in @wordpress/scripts package.
- if [[ "$PHPCS" == 1 ]]; then npm run lint:js; fi

# Run the theme through lint:css checker as defined in @wordpress/scripts package.
- if [[ "$PHPCS" == 1 ]]; then npm run lint:css; fi

0 comments on commit 1025b52

Please sign in to comment.