mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
Add prettier and stylelint config files
This commit is contained in:
parent
f60539d023
commit
ad8b3d9630
4 changed files with 31 additions and 0 deletions
1
.prettierignore
Normal file
1
.prettierignore
Normal file
|
@ -0,0 +1 @@
|
|||
vendor
|
3
.prettierrc.js
Normal file
3
.prettierrc.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Import the default config file and expose it in the project root.
|
||||
// Useful for editor integrations.
|
||||
module.exports = require( '@wordpress/prettier-config' );
|
2
.stylelintignore
Normal file
2
.stylelintignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
vendor
|
25
.stylelintrc.json
Normal file
25
.stylelintrc.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"extends": "@wordpress/stylelint-config/scss",
|
||||
"rules": {
|
||||
"at-rule-empty-line-before": null,
|
||||
"at-rule-no-unknown": null,
|
||||
"comment-empty-line-before": null,
|
||||
"font-weight-notation": null,
|
||||
"max-line-length": null,
|
||||
"no-descending-specificity": null,
|
||||
"rule-empty-line-before": null,
|
||||
"selector-class-pattern": null,
|
||||
"value-keyword-case": null,
|
||||
"scss/operator-no-unspaced": null,
|
||||
"scss/selector-no-redundant-nesting-selector": null,
|
||||
"scss/at-import-partial-extension": null,
|
||||
"scss/no-global-function-names": null,
|
||||
"scss/comment-no-empty": null,
|
||||
"scss/at-extend-no-missing-placeholder": null,
|
||||
"scss/operator-no-newline-after": null,
|
||||
"scss/at-if-closing-brace-newline-after": null,
|
||||
"scss/at-else-empty-line-before": null,
|
||||
"scss/at-if-closing-brace-space-after": null,
|
||||
"no-invalid-position-at-import-rule": null
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue