-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the npm scripts to use wp-scripts for linting
- Loading branch information
1 parent
d451ca5
commit f0081e3
Showing
11 changed files
with
13,360 additions
and
3,597 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 |
---|---|---|
@@ -1,3 +1,29 @@ | ||
{ | ||
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ] | ||
"root": true, | ||
"extends": [ | ||
"plugin:@wordpress/eslint-plugin/recommended-with-formatting", | ||
"plugin:import/recommended", | ||
"plugin:eslint-comments/recommended" | ||
], | ||
"env": { | ||
"browser": true | ||
}, | ||
"rules": { | ||
"jsdoc/check-indentation": "error", | ||
"@wordpress/dependency-group": "error" | ||
}, | ||
"overrides": [{ | ||
"files": [ | ||
"**/__tests__/**/*.js", | ||
"**/test/*.js", | ||
"**/?(*.)test.js", | ||
"tests/js/**/*.js" | ||
], | ||
"extends": [ | ||
"plugin:jest/all" | ||
], | ||
"rules": { | ||
// Add Rules for Jest here | ||
} | ||
}] | ||
} |
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 |
---|---|---|
|
@@ -8,4 +8,7 @@ module.exports = { | |
"**/*.{css,scss}": [ | ||
"npm run lint:css" | ||
], | ||
"package.json": [ | ||
"npm run lint:package-json" | ||
], | ||
}; |
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,4 +1,7 @@ | ||
{ | ||
"extends": "@wordpress/stylelint-config/scss", | ||
"ignoreFiles": ["**/build/**"] | ||
"extends": "@wordpress/stylelint-config/scss", | ||
"ignoreFiles": [ | ||
"**/*.js" | ||
], | ||
"rules": {} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
* Home scripts. | ||
*/ | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import '../sass/home.scss'; |
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 |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
* Single page scripts. | ||
*/ | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import '../sass/single.scss'; |
Oops, something went wrong.