Comments (3)
Just fixed in @putout/[email protected] 🎉 . Please re-install 🐊Putout. Is it works for you?
Configuration file name starts from .
is .putout.json
, and you can override any options, for example to use double quotes set:
{
"printer": ["putout", {
"format": {
"quote": "\""
},
"semantics": {
"encodeSingleQuote": false
}
}]
}
Or you can set recast
as a printer (it is slower and not maintained, but tries to preserve style of code):
{
"printer": "recast"
}
from putout.
I'm using the eslint plugin and i don't get how to configure the putout's printer in this case. Creating a putout.json
doesn't help.
from putout.
@coderaiser, I think this problem still exists.
POC for putout
CLI tool / putout's astexplorer website:
Tested with Putout version: 33.12.0
(CLI tool) and 33.10.0
(website)
alert("This is text \\' but this will be code")
// ->
alert('This is text \\' but this will be code');
POC for @putout/printer
package:
Tested with version 6.4.1
const printer = require('@putout/printer')
const { parse } = require('@babel/parser')
const input = `alert("'")`
alert({ actual: printer.print(parse(input)) })
// -> { actual: "alert(''');\n" }
from putout.
Related Issues (20)
- ignore test files HOT 5
- path is missing for ruler toggler HOT 2
- babel config is not loaded. HOT 13
- how to run just specific rules HOT 1
- putout ignores camelCased paths HOT 1
- Using async functions in replacer HOT 6
- Mistaken removal of semi from unnamed prop types in FC HOT 12
- @putout/printer: Removed useful comma in TS HOT 6
- 🐊 name.startsWith is not a function HOT 13
- How to use indetifier name as a string? HOT 4
- It it possible to use Putout as Eslint backend? HOT 1
- remove-unused-expressions: "use client" false warning HOT 2
- ESLint integration fail HOT 4
- Option to configure printer overrides from HOT 10
- doesn't work with yarn 4 and pnp HOT 2
- does more than asked for HOT 3
- Closing arrow bracket (>) inside React components should not be transformed into `>` automatically HOT 1
- `npm install` broken due to eslint shenanigans HOT 1
- how to remove "yield" HOT 10
- `eslint-plugin-putout` with ESLint flat config HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from putout.