@prettier/plugin-ruby
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -9,2 +9,9 @@ # Changelog | ||
## [4.0.3] - 2023-11-27 | ||
### Changed | ||
- [#1406](https://github.com/prettier/plugin-ruby/pull/1406) - mikesea - Support running without the RBS or Haml plugins loaded. | ||
- [#1407](https://github.com/prettier/plugin-ruby/pull/1407) - hrabe - Support shimmed Ruby versions. | ||
## [4.0.2] - 2023-07-14 | ||
@@ -1295,3 +1302,4 @@ | ||
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...HEAD | ||
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.3...HEAD | ||
[4.0.3]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...v4.0.3 | ||
[4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2 | ||
@@ -1298,0 +1306,0 @@ [4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1 |
{ | ||
"name": "@prettier/plugin-ruby", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "prettier plugin for the Ruby programming language", | ||
@@ -26,7 +26,7 @@ "type": "module", | ||
"devDependencies": { | ||
"eslint": "^8.35.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"husky": "^8.0.1", | ||
"jest": "^29.5.0", | ||
"prettier": "^3.0.0", | ||
"prettier": "^3.1.0", | ||
"pretty-quick": "^3.1.2" | ||
@@ -33,0 +33,0 @@ }, |
@@ -100,5 +100,16 @@ <div align="center"> | ||
```bash | ||
./node_modules/.bin/prettier --write '**/*' | ||
./node_modules/.bin/prettier --plugin=@prettier/plugin-ruby --write '**/*' | ||
``` | ||
### Using Prettier >= 3.0 | ||
You need to tell Prettier to use the plugin, add the following to your existing [prettier configuration | ||
file](https://prettier.io/docs/en/configuration.html). | ||
```json | ||
{ | ||
"plugins": ["@prettier/plugin-ruby"] | ||
} | ||
``` | ||
## Configuration | ||
@@ -105,0 +116,0 @@ |
@@ -70,2 +70,11 @@ import { spawn } from "child_process"; | ||
const default_options = { | ||
env: Object.assign({}, process.env, { LANG: getLang() }), | ||
stdio: ["ignore", "ignore", "inherit"], | ||
detached: true | ||
}; | ||
const options = opts.filepath | ||
? { cwd: path.dirname(opts.filepath), ...default_options } | ||
: default_options; | ||
const server = spawn( | ||
@@ -78,7 +87,3 @@ opts.rubyExecutablePath || "ruby", | ||
], | ||
{ | ||
env: Object.assign({}, process.env, { LANG: getLang() }), | ||
stdio: ["ignore", "ignore", "inherit"], | ||
detached: true | ||
} | ||
options | ||
); | ||
@@ -85,0 +90,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133189
348
202