Skip to content

Commit eb68499

Browse files
chore(lint): fix prettier configs and ignores (#11295)
So tests started to fail because babel plugin tester uses prettier to format test output. It looks like it didn't play well with a `.mjs` config file.
1 parent b774874 commit eb68499

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.prettierignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
**/dist
33

44
# Ignore fixture projects
5-
__fixtures__
5+
/__fixtures__
66

77
# Ignore the certain files in /docs
8+
/docs/.docusaurus
9+
/docs/build
810
/docs/versioned_docs
911
/docs/versioned_sidebars
1012

@@ -21,6 +23,7 @@ packages/create-redwood-rsc-app
2123
# Ignore test fixtures
2224
**/__testfixtures__
2325
**/__tests__/fixtures
26+
**/__tests__/__fixtures__
2427

2528
# TODO(jgmw): Re-enable these in managable chunks
2629
packages/create-redwood-app/tests/e2e_prompts*

docs/prettier.config.mjs renamed to docs/prettier.config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import rootConfig from '../prettier.config.mjs'
1+
/* eslint-env node */
2+
// @ts-check
3+
4+
const rootConfig = require('../prettier.config')
25

36
/**
47
* @see https://prettier.io/docs/en/configuration.html
@@ -9,4 +12,4 @@ const config = {
912
trailingComma: 'es5',
1013
}
1114

12-
export default config
15+
module.exports = config

prettier.config.mjs renamed to prettier.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* eslint-env node */
2+
// @ts-check
3+
14
/**
25
* @see https://prettier.io/docs/en/configuration.html
36
* @type {import("prettier").Config}
@@ -14,4 +17,4 @@ const config = {
1417
],
1518
}
1619

17-
export default config
20+
module.exports = config

0 commit comments

Comments
 (0)