Skip to content
forked from prettier/prettier

Modified version of the Prettier - code formatter. Removed some spaces and some line breaks.

License

Notifications You must be signed in to change notification settings

b5414/vprettier

 
 

Repository files navigation

VPrettier V3

let's go

start

  1. yarn
  2. yarn build
  • prettier . --write

links

example of ./sample.js after vprettier

const xaxa = (configPlace, frame, fac, par)=>{
	this.config.on(
		'start 1111111111',
		function (){
			this.frame_.stop_events();
		},
		function (a, b, c, s){
			this.frame_.stop_events();
		},
		()=>{},
		this,
		true,
	);

	this.config.on(
		'start 2222222222',
		function (a, b, s){
			'start';
		},
		this,
		true,
	);
};

//

await new Promise((done)=>done(true));

const a = {async func1(){}};
const obj = {
	get isInstalled(){
		return 0;
	},
};

func({a: 1, func(){}, b: 2});
function func(a){}
const func3 = async()=>{};
const func4 = async()=>{};
const func5 = ()=>{};
const func6 = ()=>{};
const func7 = ()=>({});

if(true && a)return func() < 1;
func().func().func().func();
if(true && a){
}

if(true && a)func();
else func();
with(a){
}
if(true && a){
}else{
}
if(true && a){
}else if(true && a){
}else func();
for(;;)for(let x = 0; x < 1; x++){}
while(true && a){}
for await(let x of []){
}

try{
}catch(e){
}finally{
}
try{
}catch(e){}
try{
}catch(e){}
switch(arr[0]){
	case 0:
		break;
}

//

const x = (y)=>{
	return y;
};
const z = async(y)=>y;
const x2 = async(y)=>{
	return y;
};

//

const arr = [0, 1];

const arr2 = [
	0,
	//
	1,
];

const obj1 = {
	a: 1,
	b: 2,
	c: ()=>{},
	d: ()=>arr,
	f: function (){
		return 1;
	},
	e: ()=>({a: 123}),
};

About

Modified version of the Prettier - code formatter. Removed some spaces and some line breaks.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%