Commit Graph
145 Commits
Author SHA1 Message Date
fisker Cheung 706aa4ef90 Switch js parse postprocess to onEnter (#18382) 2025-12-01 19:36:05 +08:00
fisker Cheung e240f15e75 Major refactor (#18381) 2025-12-01 07:25:25 +08:00
fisker CheungandAlexander Kachkaev 03e6828bfa Improve front matter support (#18153)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2025-10-30 22:16:54 +08:00
fisker Cheung 21e98808a8 Add front-matter/index.js (#17955) 2025-09-24 08:56:18 +08:00
fisker Cheung 4ec2648e61 Add location information to parseFrontMatter() (#17948) 2025-09-24 04:15:01 +08:00
Konv Suuandfisker 892430cee8 Prevent matching mixin calls inside arguments (#17903)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-18 20:52:49 +08:00
Konv Suuandfisker Cheung 454a9cc45a Fix Less variable name been lowercased incorrectly (#17820)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-09-09 17:30:07 +08:00
Konv Suuandautofix-ci[bot] f256652730 Fix parentheses space problem in SCSS mixin argument (#17836)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-04 15:45:50 +08:00
Will Nayesandfisker 21c6f43612 Ignore single files with @noformat / @noprettier (#17344)
Co-authored-by: fisker <lionkay@gmail.com>
2025-04-18 21:28:47 +08:00
SUZUKI Sosukeandfisker 973f3b5940 Fix formatting of incomplete CSS value comments (#16583)
Co-authored-by: fisker <lionkay@gmail.com>
2024-10-10 13:15:06 +08:00
fisker Cheung 07b468917e Remove blank lines between imports (#16450) 2024-09-29 17:56:37 +08:00
Sosuke Suzuki 060ef1b2ae Bump Prettier dependency to 3.3.3 2024-07-13 21:27:51 +09:00
fisker Cheung c03a12ad2b Enable require-unicode-regexp and regexp/strict rule (#16408) 2024-06-18 07:52:54 +09:00
Alexander Kachkaev 1ea2fd059a Add eslint-plugin-simple-import-sort (#15817) 2023-12-18 03:34:12 +08:00
renovate[bot]andfisker c0d464f3cf chore(deps): update dependency postcss to v8.4.29 (#15345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-09-07 16:32:57 +08:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
ZHAO Jin-Xiang 6e6b16771d feat: enable strict type checking (#14984) 2023-07-03 01:54:22 +09:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker Cheung e2c5da38f4 Fix builtin plugins (#14502) 2023-03-13 12:34:56 +08:00
fisker Cheung 06a7bd1d0b Extract code from parser-postcss.js (#14387) 2023-02-21 16:35:26 +08:00
fisker Cheung 4fb03a7f2a Remove dynamic imports (#14369) 2023-02-18 11:28:58 +08:00
fisker Cheung 83124d7fd6 Enable no-duplicate-imports rule (#14331) 2023-02-13 10:14:28 +08:00
fisker Cheung e01f86aa09 Skip parsing inline JavaScript code in Less (#14109) 2023-01-30 13:31:23 +08:00
fisker Cheung 0cd7e10447 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	src/language-js/print/literal.js
#	src/language-js/print/misc.js
#	src/language-js/printer-estree.js
#	tests/format/markdown/auto-link/jsfmt.spec.js
#	yarn.lock
2023-01-10 09:38:45 +08:00
Sosuke Suzukiandfisker Cheung 0c5d4f3458 Fix removing commas from function arguments in maps (#14089)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-01-06 17:13:41 +09:00
fisker Cheung f65768d00a Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/release/yarn.lock
#	src/language-css/parser-postcss.js
#	src/language-css/printer-postcss.js
#	src/language-js/print/jsx.js
#	src/language-json/printer-estree-json.js
#	website/yarn.lock
#	yarn.lock
2023-01-04 14:25:53 +08:00
Michael Voříšekandfisker Cheung 41cee0636e Do not change case of property name if inside a variable declaration in LESS (#14034)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-01-03 13:32:00 +08:00
fisker Cheung 817460b93a Merge branch 'main' into next
# Conflicts:
#	netlify.toml
2022-12-01 15:22:35 +08:00
4a1e32a9de Fixed scss function arguments on different lines in maps #9128 (#9184)
Co-authored-by: agamkrbit <agamkrbit123@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-24 17:46:29 +08:00
renovate[bot]andfisker 6959f30a81 Update dependency eslint-plugin-unicorn to v45 (#13876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-11-21 23:41:27 +08:00
fisker Cheung 59eda43d71 Use optional chaining where possible (#13773) 2022-11-03 14:23:07 +08:00
fisker Cheung 9cf73d3610 Use c8 ignore comments (#13683) 2022-10-22 23:33:08 +08:00
fisker Cheung f3d1790533 Enable logical-assignment-operators rule (#13529) 2022-09-29 10:40:13 +08:00
Lipisandfisker Cheung 4ed2d3c4bc style: Add new ESLint rule no-lonely-if and unicorn/no-lonely-if (#10176)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-29 10:25:54 +08:00
renovate[bot]andfisker d22f010106 Update dependency postcss-scss to v4.0.5 (#13491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-09-18 21:04:14 +08:00
fisker Cheung 9bacc75772 Use .at() and Object.hasOwn() (#13482) 2022-09-18 17:50:14 +08:00
fisker Cheung 17cb07665f Improve css/yaml embed traverse (#13294) 2022-08-30 11:00:12 +08:00
fisker Cheung 30f8825cb0 Add cause to parse error (#13342) 2022-08-30 10:27:11 +08:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
Sosuke Suzuki 503045c050 Use import() for postcss parsers (#13277)
* Import core parsers

* Import media parser

* Import selector parser

* Import value parser

* Remove require

* Improve imports

* Fix bundle config
2022-08-15 22:30:46 +09:00
fisker Cheung e3cb487706 Merge branch 'main' into next
# Conflicts:
#	.eslintrc.cjs
#	package.json
#	src/language-yaml/index.js
#	yarn.lock
2022-07-11 17:03:30 +08:00
fisker Cheung 6bc6914d0b Enable unicorn/prefer-logical-operator-over-ternary rule (#13060) 2022-07-09 16:03:46 +09:00
24a066399e Update dependency postcss to v8.4.13 (#12815)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-05-16 10:28:29 +08:00
fisker Cheung 717edf520f Inline require() parsers (#12527) 2022-03-28 09:41:08 +08:00
fisker Cheung 1caec5de69 Migrate CSS language to ES Module (#12341) 2022-02-21 14:22:51 +08:00
fisker Cheung 9303d84697 Merge branch 'main' into next
# Conflicts:
#	src/language-css/parser-postcss.js
#	tests/integration/__tests__/arg-parsing.js
#	tests/integration/__tests__/check.js
#	tests/integration/__tests__/config-invalid.js
#	tests/integration/__tests__/config-resolution.js
#	tests/integration/__tests__/cursor-offset.js
#	tests/integration/__tests__/debug-check.js
#	tests/integration/__tests__/debug-print-ast.js
#	tests/integration/__tests__/debug-print-comments.js
#	tests/integration/__tests__/debug-print-doc.js
#	tests/integration/__tests__/early-exit.js
#	tests/integration/__tests__/error-on-unmatched-pattern.js
#	tests/integration/__tests__/file-info.js
#	tests/integration/__tests__/help-options.js
#	tests/integration/__tests__/ignore-absolute-path.js
#	tests/integration/__tests__/ignore-emoji.js
#	tests/integration/__tests__/ignore-in-subdirectories.js
#	tests/integration/__tests__/ignore-path.js
#	tests/integration/__tests__/ignore-relative-path.js
#	tests/integration/__tests__/ignore-unknown.js
#	tests/integration/__tests__/ignore-vcs-files.js
#	tests/integration/__tests__/infer-parser.js
#	tests/integration/__tests__/invalid-ignore.js
#	tests/integration/__tests__/line-suffix-boundary.js
#	tests/integration/__tests__/list-different.js
#	tests/integration/__tests__/loglevel.js
#	tests/integration/__tests__/parser-api.js
#	tests/integration/__tests__/patterns-dirs.js
#	tests/integration/__tests__/patterns-glob.js
#	tests/integration/__tests__/patterns.js
#	tests/integration/__tests__/piped-output.js
#	tests/integration/__tests__/plugin-default-options.js
#	tests/integration/__tests__/plugin-extensions.js
#	tests/integration/__tests__/plugin-flush-line-suffix.js
#	tests/integration/__tests__/plugin-options-string.js
#	tests/integration/__tests__/plugin-options.js
#	tests/integration/__tests__/plugin-precedence.js
#	tests/integration/__tests__/plugin-preprocess.js
#	tests/integration/__tests__/plugin-resolution.js
#	tests/integration/__tests__/plugin-virtual-directory.js
#	tests/integration/__tests__/skip-folders.js
#	tests/integration/__tests__/stdin-filepath.js
#	tests/integration/__tests__/support-info.js
#	tests/integration/__tests__/syntax-error.js
#	tests/integration/__tests__/with-config-precedence.js
#	tests/integration/__tests__/with-node-modules.js
#	tests/integration/__tests__/with-parser-inference.js
#	tests/integration/__tests__/with-shebang.js
#	tests/integration/__tests__/write.js
2022-02-10 10:52:10 +08:00
fisker Cheung d962466a82 Style: Enforce kebab-case filename (#12265) 2022-02-10 10:12:31 +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
Sosuke Suzuki a0cc4ab43b Reduce bundle size of parser-postcss.js (#12204)
* Extract utils

* Move `utils.js` to `utils/index.js`
2022-01-31 16:46:47 +09:00
fisker Cheung 011672669e Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-07 15:15:42 +08:00