eslint-plugin-spaces

1.1.6 • Public • Published

More spaces!

const something = []
const obj = {
  fnExp1() {},
  fnExp2( a ) {},
  fnExp3: a => {},
}



const arrow_params = ({ abc },  a) => true
const arrow_obj = ({ abc }) => true
const arrow_empty = () => true
const arrow_var = a => true
const arrow = (a, b) => true



function * fnGen( a, b, { c } ) {}
function fnObj({ c }) {}
function fn( a, b, { c } ) {}



fnObj({ c:3 })
fn( 1, 2, { c:3 } )
fn( 1, 2, something[ 2 ] )
something.method( 123 )



if (something[ 0 ]);
if (arrow());

for (const value of [ 1, 2, 3 ]);
for (const value in {});
for (let i = 0;  i < 1;  ++i);

while (false);



class X {
  method1( a, { c } ) {}
  method2({ c }) {}
  method3 = a => {}
}

Package Sidebar

Install

npm i eslint-plugin-spaces

Weekly Downloads

37

Version

1.1.6

License

ISC

Unpacked Size

17.7 kB

Total Files

5

Last publish

Collaborators

  • evolveye