fisker Cheung
52140cc6ad
Improve internal ESLint rule ( #14112 )
2023-01-11 11:22:44 +08:00
fisker Cheung
f5fc865953
Forbid AstPath.getName() ( #14106 )
2023-01-10 11:11:39 +08:00
fisker Cheung
4176837f75
Add prefer-create-type-check-function rule ( #14071 )
2022-12-29 17:17:19 +08:00
renovate[bot]
a7b323b88c
Update dependency webpack to v5.75.0 ( #13845 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-14 20:08:04 +08:00
fisker Cheung
9eafbf6854
Enable unicorn/prefer-string-replace-all rule ( #13788 )
2022-11-06 19:55:24 +08:00
Sosuke Suzuki and fisker Cheung
92a6af22e7
Remove prefer-ast-path-node and add prefer-ast-path-getters ( #13648 )
...
* Support `getParent`
* Fix
* Fix
* Refactor
* Rename rule and add tests
* Fix by rule
* Fix error message
* Add error message tests
* Run Prettier!
* Address review
* Improve error message
* Refactor
* Stricter check & refactor
* Minor tweak
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-10-18 14:23:13 +09:00
Sosuke Suzuki
93553e95d2
Add meta.schema to internal ESLint rules for removing warnings ( #13649 )
...
* `jsx-identifier-case`
* `no-node-comments`
* Fix
2022-10-16 10:14:38 +09:00
fisker Cheung
ea825c9040
Fix "Bundler Friendly" test ( #13584 )
2022-10-06 21:22:41 +08:00
fisker Cheung
9bacc75772
Use .at() and Object.hasOwn() ( #13482 )
2022-09-18 17:50:14 +08:00
fisker Cheung
be5f457498
Use AstPath getters in needs-parens.js ( #13476 )
2022-09-14 14:09:10 +08:00
Sosuke Suzuki
e92dcbd1a5
Add new ESLint prefer-ast-path-node ( #13470 )
...
* Add new lint rule `prefer-path-get-value`
* Add new rule
* Apply fix
* Ingore projects in benchmark
* Add comment
2022-09-11 18:39:06 +09:00
fisker Cheung
33e621133c
Remove prettier.doc.builders.concat ( #13203 )
2022-08-06 11:03:47 +08:00
renovate[bot]
0780ba4590
Update dependency webpack to v5.74.0 ( #13195 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 11:07:33 +08:00
fisker Cheung
1d750585fd
Missing lock file
2022-07-23 18:24:34 +08:00
fisker Cheung
73b8c86cc4
Merge branch 'main' into next
...
# Conflicts:
# scripts/tools/bundle-test/yarn.lock
2022-07-23 18:19:22 +08:00
dependabot[bot]
e46aba0ab2
Build(deps): Bump terser from 5.12.1 to 5.14.2 in /scripts/tools/bundle-test ( #13144 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 09:58:40 +08:00
Sosuke Suzuki
6c722c7990
[next]Enforce fs/promises ( #13119 )
...
* Add new ESLint rule `prefer-fs-promises`
* Apply rule
* Renaming
2022-07-17 16:02:22 +09:00
renovate[bot] and Renovate Bot
971b4036d0
Update dependency webpack to v5.73.0 ( #12977 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2022-06-06 20:21:53 +08:00
renovate[bot] and Renovate Bot
19cad885c3
Update dependency webpack to v5.72.1 ( #12872 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2022-05-16 10:27:35 +08:00
renovate[bot] and Renovate Bot
ad473af6dc
Update dependency webpack to v5.72.0 ( #12828 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2022-05-08 17:59:35 +08:00
fisker Cheung
fcc8c484c3
Use yarn 3 ( #12599 )
2022-05-06 20:27:33 +08:00
fisker Cheung
2bcee631a2
Refactor: Import document/*.js directly ( #12739 )
2022-04-29 14:04:17 +08:00
fisker Cheung
a21dfbfa21
Merge branch 'main' into next-rebase
...
# Conflicts:
# .eslintrc.cjs
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# scripts/build/esbuild-plugins/replace-module.mjs
# src/cli/file-info.js
# src/cli/find-config-path.js
# src/cli/index.js
2022-03-24 15:02:29 +08:00
fisker Cheung
6664253b9e
Fix error when bundle prettier with webpack ( #12511 )
2022-03-24 11:20:55 +08:00
fisker Cheung
4250812682
Remove require from UMD bundles ( #12485 )
2022-03-23 10:21:02 +08:00
fisker Cheung
be0739ec22
Add type:"module" to package.json ( #12272 )
2022-02-12 15:39:16 +08:00
fisker Cheung
f0b63f3dff
Merge branch 'main' into next
...
# Conflicts:
# CONTRIBUTING.md
# cspell.json
# docs/options.md
# package.json
# scripts/build/bundler.mjs
# src/language-css/loc.js
# src/language-css/parser-postcss.js
# src/language-css/utils/index.js
# tests/format/js/arrows-bind/jsfmt.spec.js
# tests/format/js/async-do-expressions/jsfmt.spec.js
# tests/format/js/bind-expressions/jsfmt.spec.js
# tests/format/js/classes/top-level-super/jsfmt.spec.js
# tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
# tests/format/js/decorator-comments/jsfmt.spec.js
# tests/format/js/decorators-export/jsfmt.spec.js
# tests/format/js/decorators/jsfmt.spec.js
# tests/format/js/do/jsfmt.spec.js
# tests/format/js/export-default/escaped/jsfmt.spec.js
# tests/format/js/export-extension/jsfmt.spec.js
# tests/format/js/export-star/jsfmt.spec.js
# tests/format/js/exports/jsfmt.spec.js
# tests/format/js/invalid-code/jsfmt.spec.js
# tests/format/js/logical-assignment/jsfmt.spec.js
# tests/format/js/multiparser-invalid/jsfmt.spec.js
# tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
# tests/format/js/object-property-comment/jsfmt.spec.js
# tests/format/js/partial-application/jsfmt.spec.js
# tests/format/js/pipeline-operator/jsfmt.spec.js
# tests/format/js/private-in/jsfmt.spec.js
# tests/format/js/record/jsfmt.spec.js
# tests/format/js/reserved-word/jsfmt.spec.js
# tests/format/js/strings/jsfmt.spec.js
# tests/format/js/throw_expressions/jsfmt.spec.js
# tests/format/js/trailing-whitespace/jsfmt.spec.js
# tests/format/js/v8_intrinsic/jsfmt.spec.js
# tests/format/misc/errors/js/literal/jsfmt.spec.js
# tests/format/misc/errors/js/object/jsfmt.spec.js
# tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
# tests/integration/__tests__/bundle.js
# tsconfig.json
# yarn.lock
2022-02-09 09:22:32 +08:00
fisker Cheung
7e73f1cf0d
Update cSpell config ( #12154 )
2022-01-27 15:03:49 +08:00
fisker Cheung
7290ff2dc7
Add internal ESLint rule no-legacy-format-test-fixtures ( #12044 )
2022-01-04 19:31:17 +08:00
fisker Cheung and Sosuke Suzuki
5f453482bc
Add internal ESLint rule await-cli-tests ( #12013 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2022-01-03 22:16:25 +08:00
fisker Cheung
70aa861bc1
Fix internal ESLint plugin ( #11780 )
2021-11-08 18:17:15 +08:00
fisker Cheung
b001969b94
Remove require-json-extensions rule ( #11233 )
2021-07-22 09:32:21 +08:00
fisker Cheung
894f841fbd
Style: Enforce extensions ( #11227 )
2021-07-21 09:10:34 +08:00
Adaline Valentina Simonian
cedaec3c2d
Fix docs urls for internal lint rules ( #11011 )
...
scripts/eslint-plugin-prettier-internal-rules →
scripts/tools/eslint-plugin-prettier-internal-rules
2021-06-04 14:50:53 +08:00
fisker Cheung
81a1c46311
Minor tweak to js printer ( #10954 )
2021-05-27 18:00:31 +08:00
Georgii Dolzhykov
3d8dc612b5
Bump Prettier dependency to 2.3.0
2021-05-10 00:07:47 +03:00
fisker Cheung
28e67a25ac
Add no-conflicting-comment-check-flags rule ( #10775 )
2021-04-27 11:25:31 +08:00
fisker Cheung
230428f34b
Add consistent-negative-index-access rule ( #10569 )
2021-03-20 14:06:12 +02:00
fisker Cheung
863eb079dc
Forbid AstPath.call without name ( #10541 )
2021-03-15 17:20:27 +08:00
fisker Cheung
521b63bb27
Update no-identifier-n rule ( #10540 )
2021-03-15 11:04:12 +08:00
fisker Cheung
d3a0699148
Rename n to node ( #10504 )
2021-03-10 22:14:08 +02:00
fisker Cheung
c7f9b9d1e8
Fix a wrong condition ( #10478 )
...
* Add rule
* Fix
2021-03-07 12:19:38 +02:00
fisker Cheung
95c8086c2c
Add flat-ast-path-call rule ( #10354 )
2021-02-26 09:26:50 +08:00
Georgii Dolzhykov
f3906d84d4
Refactor: rename FastPath → AstPath ( #10276 )
2021-02-10 13:42:06 +02:00
Georgii Dolzhykov
5a33fec904
RFC: indentIfBreak ( #10221 )
2021-02-05 01:03:40 +02:00
Sosuke Suzuki and fisker Cheung
07b30645ec
style: Add new ESLint rule no-empty-string-for-ifbreak ( #10172 )
...
* Add new ESLint rule for ifBreak
* Fix for third argument
* Run fix with new rule
* Address review
* Fix
* Update no-empty-flat-contents-for-if-break.js
* Fix CI config
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-01-29 20:03:11 +09:00
fisker Cheung
12bddae20c
Switch default branch to main ( #10115 )
2021-01-23 19:14:13 +02:00
fisker Cheung
7b24335064
Refactor: Use Doc[] instead of concat() ( #9993 )
2021-01-11 13:46:05 +08:00
fisker Cheung
358ad36a84
Forbid use concat() in concat() ( #9998 )
2021-01-11 10:19:13 +08:00
fisker Cheung and Sosuke Suzuki
7ec7a0f21f
Fix using concat() on single Doc ( #9994 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-01-04 14:40:02 +08:00