Rename PostCSS files to .pcss (#9013)

* Rename PostCSS files to `.pcss`

* Make Stylelint happy

* Delint

* Rename new files too

* delint

* Fix bad comment placement
This commit is contained in:
Michael Telatynski 2022-07-15 14:53:23 +01:00 committed by GitHub
parent 7842d5165c
commit 01f4bb8c78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
371 changed files with 740 additions and 1045 deletions

View file

@ -14,7 +14,7 @@ const path = require('path');
* creates files:
* - src/components/toasts/NewToast.tsx
* - test/components/toasts/NewToast-test.tsx
* - res/css/components/toasts/_NewToast.scss
* - res/css/components/toasts/_NewToast.pcss
*
*/
@ -115,7 +115,7 @@ const makeReactComponent = async () => {
const componentFilePath = await makeFile({ filePath, componentName, base: 'src', extension: '.tsx', template: TEMPLATES.COMPONENT });
await makeFile({ filePath, componentFilePath, componentName, base: 'test', extension: '-test.tsx', template: TEMPLATES.TEST, componentName });
if (withStyle) {
await makeFile({ filePath, componentName, base: 'res/css', prefix: '_', extension: '.scss', template: TEMPLATES.STYLE });
await makeFile({ filePath, componentName, base: 'res/css', prefix: '_', extension: '.pcss', template: TEMPLATES.STYLE });
}
}