Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettierx: Merge Prettier 2.3.1 updates - draft 2 #569

Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
2035 commits
Select commit Hold shift + click to select a range
2afc3b9
Release 2.3.0
thorn0 May 9, 2021
3d8dc61
Bump Prettier dependency to 2.3.0
thorn0 May 9, 2021
f7de292
Git blame ignore 2.3.0
thorn0 May 9, 2021
e0610b0
Update dependents count
thorn0 May 9, 2021
06409b8
Fix release script
thorn0 May 9, 2021
ba1a833
Add 2.3 blog post (#10659)
thorn0 May 9, 2021
171b1ee
Clean changelog_unlreleased
thorn0 May 9, 2021
4a8f5b8
Fix a link in the blog post
thorn0 May 10, 2021
8c93ef5
Remove `.prettierrc` parser override (#10845)
fisker May 10, 2021
6e71422
Use async APIs in CLI (#10841)
fisker May 10, 2021
b798397
Drop Node.js 10 support for development "build" (#10842)
fisker May 11, 2021
98abb99
Use `Object.fromEntries()`, `Array#flat()` and `Array#flatMap()` (#10…
fisker May 11, 2021
e161350
Use fsPromises in CLI (#10852)
fisker May 11, 2021
2eb2df6
Update babel config (#10855)
fisker May 12, 2021
572e0ed
Fix `.eslintignore` (#10875)
fisker May 13, 2021
1005b4b
Update commands.md
thorn0 May 13, 2021
bcd6254
Fix #5599, long yaml keys trigger explicit mapping (#10874)
pdavies May 15, 2021
383f622
Style: Remove useless flags (#10861)
fisker May 15, 2021
f4a6232
Switch some scripts to ESM (#10867)
fisker May 15, 2021
c91a8cb
Build(deps-dev): Bump @babel/preset-env from 7.14.1 to 7.14.2 (#10897)
dependabot[bot] May 16, 2021
b53840d
Build(deps-dev): Bump eslint-plugin-import from 2.22.1 to 2.23.2 (#10…
dependabot[bot] May 16, 2021
c829143
Build(deps-dev): Bump webpack from 5.36.2 to 5.37.0 (#10891)
dependabot[bot] May 16, 2021
8868f07
Build(deps-dev): Bump esm-utils from 1.0.1 to 1.1.0 (#10883)
dependabot[bot] May 16, 2021
223eef6
Build(deps): Bump @glimmer/syntax from 0.79.0 to 0.79.1 (#10894)
dependabot[bot] May 16, 2021
0b3fabd
Build(deps): Bump flow-parser from 0.150.1 to 0.151.0 (#10899)
dependabot[bot] May 16, 2021
a9c3960
Remove dead code (#10869)
fisker May 16, 2021
213a825
Use `join` in `replaceNewlinesWithLiterallines` (#10860)
fisker May 16, 2021
90ea7e4
Use fsPromise in `getFileContentOrNull` (#10859)
fisker May 16, 2021
2e1021c
Reduce use of `Array#reduce()` (#10863)
fisker May 16, 2021
ce396ff
Build(deps-dev): Bump @babel/core from 7.14.0 to 7.14.2 (#10896)
dependabot[bot] May 16, 2021
10fbda5
Build(deps-dev): Bump eslint-plugin-unicorn from 31.0.0 to 32.0.1 (#1…
dependabot[bot] May 16, 2021
7adb43b
Build(deps-dev): Bump terser-webpack-plugin from 5.1.1 to 5.1.2 (#10900)
dependabot[bot] May 16, 2021
ff0b4f9
Build(deps): Bump find-parent-dir from 0.3.0 to 0.3.1 (#10887)
dependabot[bot] May 16, 2021
ab3d040
Build(deps-dev): Bump @babel/types from 7.14.1 to 7.14.2 (#10885)
dependabot[bot] May 16, 2021
85c1aab
Build(deps-dev): Bump rollup from 2.47.0 to 2.48.0 (#10895)
dependabot[bot] May 16, 2021
53bd6b5
Build(deps): Bump @angular/compiler from 11.2.13 to 11.2.14 (#10888)
dependabot[bot] May 16, 2021
2348ecc
Build(deps-dev): Bump @glimmer/reference from 0.79.0 to 0.79.1 (#10889)
dependabot[bot] May 16, 2021
bea85be
Build(deps-dev): Bump webpack from 5.36.2 to 5.37.0 in /website (#10884)
dependabot[bot] May 17, 2021
a7dbbb9
Build(deps): Bump @typescript-eslint/typescript-estree (#10892)
dependabot[bot] May 17, 2021
cedf480
Add JSDoc type for isNonEmptyArray (#10902)
sosukesuzuki May 17, 2021
085e38b
Move `replaceEndOfLineWith` to `docUtils` (#10862)
fisker May 17, 2021
9b7ba8a
Style: Use `dotAll` regexp (#10864)
fisker May 17, 2021
a3466f7
Build(deps): Bump @babel/parser from 7.14.1 to 7.14.3 (#10908)
dependabot[bot] May 18, 2021
4b9e881
Add heuristics to detect type aliases that has complex typeparameters…
sosukesuzuki May 19, 2021
4d37ac4
Add `__babel_estree` parser (#10910)
fisker May 19, 2021
8f17187
Reduce `parser-graphql` size (#10903)
fisker May 19, 2021
6dcc20c
docs: make "A note on formatting reversibility" linkable
thorn0 May 20, 2021
b84bc95
Update CONTRIBUTING.md
thorn0 May 20, 2021
8410e0d
Update CONTRIBUTING.md
thorn0 May 21, 2021
fbca25c
Allow `:` as class prefix-delimeter (#10906)
tkalmar May 21, 2021
326ea12
Build(deps-dev): Bump eslint from 7.26.0 to 7.27.0 (#10932)
dependabot[bot] May 23, 2021
eb20ab9
Build(deps-dev): Bump @babel/core from 7.14.2 to 7.14.3 (#10935)
dependabot[bot] May 23, 2021
474c6e6
Build(deps): Bump @glimmer/syntax from 0.79.1 to 0.79.2 (#10931)
dependabot[bot] May 23, 2021
0ce5b3d
Build(deps-dev): Bump webpack from 5.37.0 to 5.37.1 in /website (#10930)
dependabot[bot] May 23, 2021
60f678c
Build(deps-dev): Bump eslint-plugin-import from 2.23.2 to 2.23.3 (#10…
dependabot[bot] May 23, 2021
7e7159f
Build(deps): Bump @typescript-eslint/typescript-estree (#10934)
dependabot[bot] May 23, 2021
1f9cbe4
Build(deps-dev): Bump @glimmer/reference from 0.79.1 to 0.79.2 (#10933)
dependabot[bot] May 23, 2021
261bb03
Fix repositioning the cursor at the end of a range format (#10938)
j-f1 May 23, 2021
b710eb1
Merge tag '2.3.0' into adalinesimonian/merge-prettier-2.3.0
adalinesimonian May 23, 2021
c60eaff
fix(tests): PRETTIER_DIR → PRETTIERX_DIR
adalinesimonian May 23, 2021
f8cb785
Support stylelintrc (#10924)
SevenOutman May 23, 2021
c40a0cf
Add heuristics to detect assignments whose id has complex type annota…
sosukesuzuki May 23, 2021
c286d84
Remove more `Array#reduce()` (#10907)
fisker May 23, 2021
7073520
Build(deps-dev): Bump webpack from 5.37.0 to 5.37.1 (#10936)
dependabot[bot] May 24, 2021
f1e0f63
refactor: Add isObjectProperty util function (#10942)
sosukesuzuki May 25, 2021
06065bf
Support TypeScript 4.3 (#10945)
sosukesuzuki May 25, 2021
3616182
Fix incorrectly wrapped arrow functions with return types (#10940)
thorn0 May 25, 2021
2783bb4
Update `jest` to v27 (#10947)
fisker May 26, 2021
d3b777d
Update build script (#10946)
fisker May 27, 2021
40cd8c9
Move `flow` node to `flow.js` (#10449)
fisker May 27, 2021
81a1c46
Minor tweak to js printer (#10954)
fisker May 27, 2021
0549c62
FIX-UP: remove flow-parser & typescript from dependencies in package.…
May 27, 2021
4b4d0ad
feat: add inherited option support
adalinesimonian May 27, 2021
805c304
chore(support): Bump prettier version to 2.3.0
adalinesimonian May 27, 2021
2b22970
fix: pass options to printTemplateExpressions
adalinesimonian May 27, 2021
ab76331
fix(graphql): bracketSpacing → graphqlCurlySpacing
adalinesimonian May 27, 2021
c35420e
fix(modules): bracketSpacing → importCurlySpacing
adalinesimonian May 27, 2021
84f72be
Avoid to break after assignment for call expression that has complex …
sosukesuzuki May 28, 2021
9d53f64
Update to TypeScript 4.3 (#10959)
sosukesuzuki May 28, 2021
a33de90
fix(breakBeforeElse): correct logic
adalinesimonian May 28, 2021
0273991
fix(needs-parens): comment out prettierx changes
adalinesimonian May 28, 2021
c3d9044
fix(spaceInParens): correct logic
adalinesimonian May 28, 2021
3b5c3e5
fix(modules): don't break line when we shouldn't
adalinesimonian May 28, 2021
45642e9
fix(spacing): discern objects, type annotations
adalinesimonian May 28, 2021
0237dd3
fix(properties): pass node instead of path
adalinesimonian May 28, 2021
5142d67
refactor(tests): relocate flow, ts standard tests
adalinesimonian May 28, 2021
10bde82
fix(tests): move jsx spacing test to correct path
adalinesimonian May 28, 2021
2148b22
fix(tests): fix syntax errors blocking tests
adalinesimonian May 28, 2021
b79d068
fix(tests/yaml): ensure parser throws error
adalinesimonian May 28, 2021
88ef44b
chore(editorcfg): keep eol whitespace in tests
adalinesimonian May 28, 2021
cbf5317
fix(tests/integration): add missing properties
adalinesimonian May 28, 2021
e14b03d
fix(tests/integration): update snapshots
adalinesimonian May 28, 2021
39a9160
fix(tests/html): expect vue parser to throw error
adalinesimonian May 28, 2021
fc8e954
test(format): test bracketSpacing option
adalinesimonian May 28, 2021
ba5723d
test(js/function-paren): typeBracketSpacing: false
adalinesimonian May 28, 2021
f05280b
test(js\empty-paren-cmnt): remove duplicate test
adalinesimonian May 28, 2021
7e8c41e
test(fmt/bin-expr/like-regex): expect espree error
adalinesimonian May 28, 2021
687c064
test(fmt/js/empty-paren-cmnt): expect espree error
adalinesimonian May 28, 2021
966bafd
test(fmt/js/cmnt-closure-tc): only test w/ babel
adalinesimonian May 28, 2021
f966940
test: update snapshots
adalinesimonian May 28, 2021
f9d587f
fix(pkg): bin-prettier.js → bin-prettierx.js
adalinesimonian May 28, 2021
bdb427a
chore(lint): fix unknown word lint error
adalinesimonian May 28, 2021
53ccea4
fix(lint): correct env/parserOptions for website
adalinesimonian May 28, 2021
5eced9d
fix(lint): conform to lint rules
adalinesimonian May 28, 2021
868a7c4
fix(test/standalone): prettier → prettierx
adalinesimonian May 28, 2021
97ec549
fix(test/standalone): prettier → prettierx
adalinesimonian May 28, 2021
8e6010e
fix(lint/tests-standalone): fix long line
adalinesimonian May 28, 2021
d0a040d
docs(options): document bracketSpacing inheritance
adalinesimonian May 28, 2021
0968839
chore(pkg): use build script
adalinesimonian May 28, 2021
498fa5c
test: add option inheritance test
adalinesimonian May 28, 2021
deb0753
Merge branch 'dev' of https://github.com/brodybits/prettierx into ada…
adalinesimonian May 28, 2021
f923907
test(config): update snapshots
adalinesimonian May 28, 2021
4b45d42
Build(deps): Bump jest-docblock from 26.0.0 to 27.0.1 (#10985)
dependabot[bot] May 30, 2021
2924f34
Build(deps-dev): Bump core-js from 3.12.1 to 3.13.1 (#10983)
dependabot[bot] May 30, 2021
ece990a
Build(deps): Bump ci-info from 3.1.1 to 3.2.0 (#10977)
dependabot[bot] May 30, 2021
fa6ea41
Build(deps-dev): Bump jest-watch-typeahead from 0.6.3 to 0.6.4 (#10972)
dependabot[bot] May 30, 2021
fabe787
Build(deps-dev): Bump eslint-plugin-import from 2.23.3 to 2.23.4 (#10…
dependabot[bot] May 30, 2021
fe1330e
Build(deps): Bump @glimmer/syntax from 0.79.2 to 0.79.3 (#10986)
dependabot[bot] May 30, 2021
9169b3b
Build(deps): Bump flow-parser from 0.151.0 to 0.152.0 (#10984)
dependabot[bot] May 30, 2021
f0bbdf0
Build(deps-dev): Bump webpack from 5.37.1 to 5.38.1 (#10981)
dependabot[bot] May 30, 2021
3141e72
Build(deps-dev): Bump babel-jest from 27.0.1 to 27.0.2 (#10980)
dependabot[bot] May 30, 2021
524223d
Build(deps-dev): Bump @babel/preset-env from 7.14.2 to 7.14.4 (#10978)
dependabot[bot] May 30, 2021
0c3ed50
Build(deps): Bump actions/cache from 2.1.5 to 2.1.6 (#10965)
dependabot[bot] May 30, 2021
5bfe2fc
Build(deps-dev): Bump eslint-plugin-regexp from 0.10.0 to 0.11.0 (#10…
dependabot[bot] May 30, 2021
b4b71d7
Build(deps-dev): Bump jest from 27.0.1 to 27.0.3 (#10976)
dependabot[bot] May 30, 2021
3ec9414
Fix order of override modifiers (#10961)
sosukesuzuki May 30, 2021
206716a
Build(deps): Bump @babel/parser from 7.14.3 to 7.14.4 (#10975)
dependabot[bot] May 31, 2021
2aef43c
Build(deps-dev): Bump @glimmer/reference from 0.79.2 to 0.79.3 (#10970)
dependabot[bot] May 31, 2021
b390ce9
Build(deps-dev): Bump eslint-plugin-react from 7.23.2 to 7.24.0 (#10967)
dependabot[bot] May 31, 2021
b4d2c3c
Build(deps-dev): Bump concurrently from 6.1.0 to 6.2.0 in /website (#…
dependabot[bot] May 31, 2021
e502559
Build(deps): Bump codemirror-graphql from 1.0.1 to 1.0.2 in /website …
dependabot[bot] May 31, 2021
856c0f0
Build(deps-dev): Bump @babel/types from 7.14.2 to 7.14.4 (#10974)
dependabot[bot] May 31, 2021
049533d
Build(deps-dev): Bump webpack from 5.37.1 to 5.38.1 in /website (#10973)
dependabot[bot] May 31, 2021
21ce278
Build(deps): Bump angular-estree-parser from 2.3.0 to 2.4.0 (#10992)
dependabot[bot] May 31, 2021
f69d147
Build(deps-dev): Bump execa from 5.0.0 to 5.0.1 (#10993)
dependabot[bot] May 31, 2021
b1b05b0
test: use file: link for eslint-plugin-prettier-internal-rules
May 31, 2021
04f0200
fixup! test: use file: link for eslint-plugin-prettier-internal-rules
May 31, 2021
3a71791
Build(deps): Bump @angular/compiler from 11.2.14 to 12.0.2 (#10995)
dependabot[bot] May 31, 2021
46955f2
fix(ci/tests): install optional deps when testing
adalinesimonian May 31, 2021
233d313
fix(lint): whoops, add missing semicolon
adalinesimonian May 31, 2021
0f719cb
fix(tests/env): prettier → prettierx
adalinesimonian May 31, 2021
c8133f8
Fix `StringLiteral` print (#10997)
fisker Jun 1, 2021
ddcfdd4
Build(deps): Bump linguist-languages from 7.14.0 to 7.15.0 (#10990)
dependabot[bot] Jun 1, 2021
273dbd1
fix(js/modules): add missing separators to imports
adalinesimonian Jun 1, 2021
f895e02
[XXX TODO] prettierx: set version to 0.19.0-dev
adalinesimonian Jun 1, 2021
d8a42e3
feat(test): disable tests by file, parser, options
adalinesimonian Jun 1, 2021
a20b8ab
Merge branch 'adalinesimonian/merge-prettier-2.3.0' of https://github…
adalinesimonian Jun 1, 2021
5107566
Revert "feat(test): disable tests by file, parser, options"
Jun 1, 2021
427d816
prettierx: update @babel/parser -> 7.14.4
Jun 1, 2021
976ac58
feat(test): disable tests by file, parser, options - REAPPLY THIS WOR…
adalinesimonian Jun 1, 2021
d977024
FIX-UP: only skip disabled test in round-trip stage
Jun 1, 2021
86797d1
feat(test): allow disabling tests for round trips
adalinesimonian Jun 2, 2021
5bed9db
FIX-UP (further refactoring) re: disabling tests for round trips
Jun 2, 2021
b25965d
Revert "prettierx: update @babel/parser -> 7.14.4" - leaving this for…
Jun 2, 2021
e18ad0f
FIX-UP: remove tslib from package dependencies, etc.
Jun 2, 2021
e27da19
FIX-UP: remove json-stable-stringify - now replaced by fast-json-stab…
Jun 2, 2021
a7f2e9a
add TEMPORARY EXCEPTION to prettierx dependencies notes (...)
Jun 2, 2021
c4ddd50
FIX-UP: fix CHANGELOG.md
Jun 2, 2021
1d69549
Update v2.3 blog post (#11002)
aliaksandrsen Jun 2, 2021
b3ff284
chore: use broken-out bracket spacing options
adalinesimonian Jun 2, 2021
14ebd30
FIX-UP: remove strip-ansi from devDependencies ... but strip-ansi MUS…
Jun 2, 2021
084d790
FIX-UP: remove dedent & srcset NOT NEEDED from package dependencies
Jun 2, 2021
151e872
FIX-UP: remove some devDependencies not needed
Jun 2, 2021
0413f56
FIX-UP: add missing [prettierx] comments to jest.config.js
Jun 2, 2021
5d52503
[FIX-UP] remove dedent from scripts/release/package.json for consiste…
Jun 2, 2021
382b1e3
[FIX-UP] remove entries not needed from scripts/release/yarn.lock for…
Jun 2, 2021
8994449
Merge branch 'adalinesimonian/merge-prettier-2.3.0' of https://github…
adalinesimonian Jun 2, 2021
639ca2f
chore: remove option inheritance
adalinesimonian Jun 2, 2021
9016a72
FIX-UP: update tests/format/angular/angular/jsfmt.spec.js to improve …
Jun 2, 2021
5ecccf9
[FIX-UP] update tests/format/angular/angular/__snapshots__/jsfmt.spec…
Jun 2, 2021
e3d1522
test(bracket-spacing): only set necessary options
adalinesimonian Jun 2, 2021
1a1763b
Merge branch 'adalinesimonian/merge-prettier-2.3.0' of https://github…
adalinesimonian Jun 2, 2021
04ab758
[FIX-UP] update tests/format/yaml/flow-mapping/jsfmt.spec.js to impro…
Jun 2, 2021
d5fa43b
[FIX-UP] update tests/format/yaml/flow-mapping/__snapshots__/jsfmt.sp…
Jun 2, 2021
478256e
[FIX-UP] update tests/format/yaml/flow-sequence/jsfmt.spec.js to impr…
Jun 2, 2021
95cc0b9
[FIX-UP] update tests/format/yaml/flow-sequence/__snapshots__/jsfmt.s…
Jun 2, 2021
6af363e
Merge branch 'dev' of https://github.com/brodybits/prettierx into ada…
Jun 2, 2021
3d1b19c
FIX-UP (breakBeforeElse): add prettierx comment
Jun 2, 2021
a4ef7dc
MERGE FIX-UP: keep src/document/doc-debug.js from Prettier 2.3.0
Jun 2, 2021
9510335
FIX-UP: remove "PrettierX" entries not needed from cspell.json
Jun 2, 2021
2254590
[TBD ???] move the new prettierX cspell entries near the end of the w…
Jun 2, 2021
1912344
FIX-UP: remove inherit property type no longer needed from src/main/c…
Jun 2, 2021
d361c63
FIX-UP: REVERT my updates to cspell.json - my bad, moved into a separ…
Jun 2, 2021
4130480
MERGE FIX-UP: add & update some comments for prettierX in src/languag…
Jun 2, 2021
ac5a23e
MERGE FIX-UP: add prettierx-specific package files entries
Jun 3, 2021
3a44b2d
chore: remove changes that should be made upstream
adalinesimonian Jun 3, 2021
a1f19fb
Merge branch 'adalinesimonian/merge-prettier-2.3.0' of https://github…
adalinesimonian Jun 3, 2021
a0bb1d2
chore: build → build-extra-dist, will separate PR
adalinesimonian Jun 3, 2021
b99c5f6
prettierx: remove GitHub items not wanted from Prettier 2.3.0
Jun 3, 2021
fa6a377
prettierx: remove GitHub items not wanted from Prettier 2.3.0
Jun 3, 2021
5f21689
Merge branch 'adalinesimonian/merge-prettier-2.3.0' of https://github…
adalinesimonian Jun 3, 2021
4691934
fix(lint): allow npm install w/ no-node-comments
adalinesimonian Jun 3, 2021
d98427b
chore: revert doc url edit meant for upstream
adalinesimonian Jun 3, 2021
f9dbed6
MERGE FIX-UP: use Babel by default for Flow in src/language-js/index.js
Jun 4, 2021
be12fbb
MERGE FIX-UP: update tests/integration/__tests__/__snapshots__/suppor…
Jun 4, 2021
b9de81e
Merge branch 'dev' of https://github.com/brodybits/prettierx into ada…
Jun 4, 2021
cf1a5ce
FIX-UP: .github items
Jun 4, 2021
170a460
FIX-UP CHANGELOG.md - my bad
Jun 4, 2021
d28f2fe
FIX-UP: add details from Prettier 2.3.0 to CONTRIBUTING.md etc.
Jun 4, 2021
a294aff
[MERGE FIX-UP] improve section headers in CONTRIBUTING.md
Jun 4, 2021
cedaec3
Fix docs urls for internal lint rules (#11011)
adalinesimonian Jun 4, 2021
4b4aeaf
Fix a typo (#11009)
Jun 4, 2021
c3c300d
Remove `@types/node` package (#10994)
fisker Jun 4, 2021
3cd28ca
Preserve attributes order for element node (#10958)
dcyriller Jun 4, 2021
09d65c3
Revert features for minor (#11016)
sosukesuzuki Jun 5, 2021
d770f49
Release 2.3.1
sosukesuzuki Jun 5, 2021
a34b4a7
Bump Prettier dependency to 2.3.1
sosukesuzuki Jun 5, 2021
13d4d8b
Git blame ignore 2.3.1
sosukesuzuki Jun 5, 2021
d426741
Fix bump script
sosukesuzuki Jun 5, 2021
79a9c1e
Update dependents count
sosukesuzuki Jun 5, 2021
4b4499a
Move TS4.3 section to top of CHANGELOG
sosukesuzuki Jun 5, 2021
531c008
Build(deps): Bump execa from 5.0.0 to 5.1.1 in /scripts/release (#11030)
dependabot[bot] Jun 6, 2021
69b6649
Build(deps-dev): Bump @types/estree from 0.0.47 to 0.0.48 (#11028)
dependabot[bot] Jun 6, 2021
792218a
Build(deps-dev): Bump execa from 5.0.1 to 5.1.1 (#11026)
dependabot[bot] Jun 6, 2021
4e08d24
Build(deps): Bump @angular/compiler from 12.0.2 to 12.0.3 (#11027)
dependabot[bot] Jun 6, 2021
681f51b
Build(deps-dev): Bump eslint-plugin-unicorn from 32.0.1 to 33.0.1 (#1…
dependabot[bot] Jun 6, 2021
3254e67
Build(deps-dev): Bump core-js from 3.13.1 to 3.14.0 (#11019)
dependabot[bot] Jun 6, 2021
c6d3f55
Build(deps-dev): Bump eslint from 7.27.0 to 7.28.0 (#11022)
dependabot[bot] Jun 6, 2021
12dbc9b
Build(deps-dev): Bump jest from 27.0.3 to 27.0.4 (#11021)
dependabot[bot] Jun 6, 2021
829e5d1
Build(deps): Bump @typescript-eslint/typescript-estree (#11020)
dependabot[bot] Jun 6, 2021
4847f31
Build(deps-dev): Bump terser-webpack-plugin from 5.1.2 to 5.1.3 (#11029)
dependabot[bot] Jun 6, 2021
321f736
Retry "npm publish" when to enter OTP is faeild (#11031)
sosukesuzuki Jun 7, 2021
32b13b3
Small detail in tests config (#11034)
Janther Jun 7, 2021
b5eba94
remove tests folder from path (#11035)
Janther Jun 7, 2021
1cd13ca
fix(format): restore --no-indent-chains support
adalinesimonian Jun 7, 2021
586c839
[NIT FIX-UP] add comment in place of code that was moved & updated
Jun 7, 2021
5541c78
Merge tag '2.3.1' into adalinesimonian/merge-prettier-2.3.0
adalinesimonian Jun 7, 2021
aa453fd
fix(build): util → utils
adalinesimonian Jun 7, 2021
eb73799
fix(support): update prettier version
adalinesimonian Jun 7, 2021
8c4392d
Merge branch 'dev' into adalinesimonian/merge-prettier-2.3.1
adalinesimonian Jun 7, 2021
4c64fbd
Fix lint:deps script (#11038)
adalinesimonian Jun 7, 2021
62e37aa
prettierx: update @angular/compiler -> 12.0.3
Jun 7, 2021
816d911
prettierx: update @typescript-eslint/typescript-estree -> 4.26.1
Jun 7, 2021
67200c1
Merge commit '4c64fbdec9af45733829081e3ded5330d6fee97e' of https://gi…
Jun 7, 2021
dc58006
refactor(support): prettier version → package.json
adalinesimonian Jun 7, 2021
71612ca
fix(support): forgot to wrap in parentheses
adalinesimonian Jun 7, 2021
faffaa7
[TBD] use old TESTS_ROOT for now
Jun 7, 2021
72579ee
fix(support): require package on separate line
adalinesimonian Jun 7, 2021
acf318b
Merge branch 'dev' into adalinesimonian/merge-prettier-2.3.1
adalinesimonian Jun 7, 2021
d6431ba
test(format/ts/conditional-types): fix spelling
adalinesimonian Jun 7, 2021
0f85d99
test(fmt/ts/ternary-formatting): update snapshot
adalinesimonian Jun 7, 2021
60b9648
fix(tests): conform spelling, dirpath -> dirPath
adalinesimonian Jun 7, 2021
4f17587
Merge branch 'dev' of https://github.com/brodybits/prettierx into ada…
Jun 8, 2021
e6ce29f
Revert "[TBD] use old TESTS_ROOT for now"
Jun 8, 2021
53ed3ce
fix(tests): respect allowable parser rules
adalinesimonian Jun 8, 2021
377c12a
Merge branch 'dev' into adalinesimonian/merge-prettier-2.3.1
adalinesimonian Jun 9, 2021
d2f4b0c
Merge branch 'dev' into adalinesimonian/merge-prettier-2.3.1
adalinesimonian Jun 9, 2021
537b5ad
Merge branch 'dev' into adalinesimonian/merge-prettier-2.3.1
adalinesimonian Jun 15, 2021
c74e603
fix(security): resolve patched deps
adalinesimonian Jun 15, 2021
9f781b8
fix: revert change to third-party test snapshot
adalinesimonian Jun 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ insert_final_newline = true

[cspell.json]
indent_size = 4
insert_final_newline = false

[website/blog/*.md]
trim_trailing_whitespace = false

[tests/{**/__snapshots__/*, tests/format/**/*}]
trim_trailing_whitespace = false

[tests/format/**/jsfmt.spec.js]
trim_trailing_whitespace = true
7 changes: 3 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
!/*.js
/tests/**/*.js
!/tests/**/jsfmt.spec.js
/tests/format/**/*.js
/tests/integration/cli/
!/tests/format/**/jsfmt.spec.js
!/**/.eslintrc.js
/test*.js
/scripts/build/shims
/scripts/release/node_modules
/coverage/
/dist/
**/node_modules/**
/website/build/
/website/static/playground.js
/website/static/lib/
/tests_integration/cli/
95 changes: 84 additions & 11 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
root: true
env:
es6: true
es2020: true
node: true
extends:
- eslint:recommended
- plugin:prettier/recommended
parserOptions:
ecmaVersion: 2018
- prettier
plugins:
- import
- unicorn
- prettier-internal-rules
settings:
import/internal-regex: ^linguist-languages/
rules:
arrow-body-style:
- error
- as-needed
curly: error
dot-notation: error
eqeqeq:
- error
- always
- null: ignore
eqeqeq: error
import/no-extraneous-dependencies:
- error
- devDependencies: ["tests*/**", "scripts/**"]
no-else-return: error
import/order: error
no-else-return:
- error
- allowElseIf: false
no-implicit-coercion: error
no-inner-declarations: error
no-restricted-syntax:
- error
- 'BinaryExpression[operator=/^[!=]==$/] > UnaryExpression.left[operator="!"]'
no-unneeded-ternary: error
no-useless-return: error
no-unused-vars:
Expand All @@ -33,7 +41,9 @@ rules:
- error
- never
prefer-arrow-callback: error
prefer-const: error
prefer-const:
- error
- destructuring: all
prefer-destructuring:
- error
- VariableDeclarator:
Expand All @@ -46,6 +56,9 @@ rules:
prefer-object-spread: error
prefer-rest-params: error
prefer-spread: error
prettier-internal-rules/jsx-identifier-case: error
prettier-internal-rules/require-json-extensions: error
prettier-internal-rules/no-identifier-n: error
quotes:
- error
- double
Expand All @@ -56,21 +69,81 @@ rules:
- error
- never
- exceptRange: true
unicorn/better-regex: error
unicorn/explicit-length-check: error
unicorn/new-for-builtins: error
unicorn/no-array-for-each: error
unicorn/no-array-push-push: error
unicorn/no-useless-undefined: error
unicorn/prefer-includes: error
unicorn/prefer-number-properties: error
unicorn/prefer-optional-catch-binding: error
unicorn/prefer-regexp-test: error
unicorn/prefer-spread: error
unicorn/prefer-string-slice: error
overrides:
- files:
- scripts/**/*.js
rules:
no-console: off
- files:
- "{tests,tests_config,tests_integration}/**/*.js"
- "**/*.mjs"
parserOptions:
sourceType: module
- files:
- "tests/format/**/jsfmt.spec.js"
- "tests/config/**/*.js"
- "tests/integration/**/*.js"
env:
jest: true
plugins:
- jest
rules:
jest/valid-expect:
- error
- alwaysAwait: true
- files:
- tests/**/*.js
rules:
strict: off
globals:
run_spec: false
- files:
- src/cli/**/*.js
rules:
no-restricted-modules:
- error
- patterns:
- ".."
- files: src/language-js/needs-parens.js
rules:
prettier-internal-rules/better-parent-property-check-in-needs-parens: error
- files: src/**/*.js
rules:
prettier-internal-rules/consistent-negative-index-access: error
prettier-internal-rules/flat-ast-path-call: error
prettier-internal-rules/no-conflicting-comment-check-flags: error
prettier-internal-rules/no-doc-builder-concat: error
prettier-internal-rules/no-empty-flat-contents-for-if-break: error
prettier-internal-rules/no-unnecessary-ast-path-call: error
prettier-internal-rules/prefer-ast-path-each: error
prettier-internal-rules/prefer-indent-if-break: error
prettier-internal-rules/prefer-is-non-empty-array: error
- files:
- src/language-*/**/*.js
rules:
prettier-internal-rules/directly-loc-start-end: error
- files:
- src/language-js/**/*.js
rules:
prettier-internal-rules/no-node-comments:
- error
- file: "src/language-js/utils.js"
functions:
- hasComment
- getComments
- "src/language-js/parse-postprocess.js"
- "src/language-js/parser-babel.js"
- "src/language-js/parser-meriyah.js"
- "src/language-js/pragma.js"
- "src/language-js/parser/json.js"
4 changes: 0 additions & 4 deletions .flowconfig

This file was deleted.

38 changes: 38 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# git-blame ignored revisions
# To configure, run
# git config blame.ignoreRevsFile .git-blame-ignore-revs
# Requires Git > 2.23
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt

# Prettier bump after release
# 2.2.1
80961835a68e3de1b14819a7b77583a54d2b63d7
# 2.2.0
cf354c205de9841a2d306387473dac369359ca2b
# 2.1.2
c4d3014b95122f4ad19c319a9b3f5f9625d6003f
# 2.1.1
a8363197118e530d948978da6e5c414a765ba9c0
# 2.1.0
cef4bcafc7867050582d3107632bde7e722575d1
# 2.0.5
d33f8a3e2c0a59cb9f383ddec5bbf8d296bb1a23
# 2.0.4
592149791e4fea656d8c5fa34c25d4d19076a07a
# 2.0.3
64b3ac9e8e933a09f049b7cace540ee526f4d5a4
# 2.0.2
c1dd17cf383b78fd8fd43442bb5db59b51900410
# 2.0.1
f56d620be529b60c13032681446c1eb76e0fb088
# 2.0.0
9dad95b35f935edce4c3d6cfa45c79a0b9c82b9f

# Restructure test files (#10415)
ece93681f1010796e7d8eb4394196ccaef0cbc9c

# Categorize tests (#8239 #8248 #8249 #8251)
b585bd6fa4d750a98e277303c428edfc48fea3f4
f8c5b1fd1da4d67bc09d12bc3411b70d0fa4f4a1
b6225788966a4a6b49e652044337436642dcd627
7ad515111e79a3f304d5480d6586314222052333
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: 🤔 Support question
url: https://stackoverflow.com/questions/ask?tags=prettier
about: Issues are dedicated to development purposes. If you have questions, please use Stack Overflow.
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: weekly
day: sunday
time: "01:00"
open-pull-requests-limit: 20

- package-ecosystem: "npm"
directory: "/website"
schedule:
interval: weekly
day: sunday
time: "01:00"

- package-ecosystem: "npm"
directory: "/scripts/release"
schedule:
interval: weekly
day: sunday
time: "01:00"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
day: sunday
time: "01:00"
48 changes: 48 additions & 0 deletions .github/workflows/dev-package-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Dev_Package_Test

on:
schedule:
- cron: "0 0 * * 1"
pull_request:
paths:
- "package.json"
- ".github/workflows/dev-package-test.yml"

jobs:
test:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
node:
# Run tests on minimal version we support
- "10"
NPM_CLIENT:
- "yarn"
- "npm"
- "pnpm"
env:
INSTALL_PACKAGE: true
NPM_CLIENT: ${{ matrix.NPM_CLIENT }}
name: Test with ${{ matrix.NPM_CLIENT }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Install Client Package
if: matrix.NPM_CLIENT == 'pnpm'
run: npm install --global pnpm@5

- name: Run Tests
run: yarn test:dev-package --maxWorkers=2
Loading