Add prettier and stylelint config files

This commit is contained in:
Sarah Norris 2023-02-01 10:39:16 +00:00
parent f60539d023
commit ad8b3d9630
4 changed files with 31 additions and 0 deletions

1
.prettierignore Normal file
View file

@ -0,0 +1 @@
vendor

3
.prettierrc.js Normal file
View 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
View file

@ -0,0 +1,2 @@
node_modules
vendor

25
.stylelintrc.json Normal file
View 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
}
}