prettier / eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.
MIT License
5.47k stars 255 forks source link

the rule ‘function-paren-newline’ is not effect? #106

Closed dale426 closed 5 years ago

dale426 commented 5 years ago

on my project have a file that name is .prettier; i write the content:

{
  "singleQuote": true,
  "rules": {
    "function-paren-newline": "off"
  }
}

but, the param code have a new line when i use the prettier formater my code; example:

before:
this.$tow.open(this.$funHandler("order-car-input-reason", {}, {orderCode: this.orderCode}));

// after  use prettier formater;
this.$tow.open(
    this.$funHandler(
        'order-car-input-reason',
        {},
        { orderCode: this.orderCode }
    )
);

now the 'singleQuote' is effect ; expect 'function-paren-newline' is never;

j-f1 commented 5 years ago

We don’t support rules like that, unfortunately. You have to use the style Prettier suggests.