gajus / eslint-config-canonical

The most comprehensive ES code style guide.
Other
598 stars 30 forks source link

how to disable semicolons? #61

Closed scarf005 closed 1 year ago

scarf005 commented 1 year ago

.prettierrc.yml

semi: false

.eslintrc.yml

root: true
env:
  browser: true
  es2021: true

parser: "@typescript-eslint/parser"
parserOptions:
  ecmaVersion: latest
  sourceType: module

extends:
  - canonical
  - canonical/prettier

tried following settings but was unsuccessful.

prettier/prettier
  32:74  error  Insert `;` 
gajus commented 1 year ago

It is not configurable.

.prettierrc.yml files are ignored as stated in documentation.

I find it ironic that Prettier even allowed this (and other) configurations, given that the whole point of Prettier was to avoid debates about code style.

Similarly, my stance is that, unless the rule may have impact to code compatibility or security, it should not be configurable.