tj / commander.js

node.js command-line interfaces made easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev: Linter and Formatter

shadowspawn opened this issue · comments

ESLint has deprecating core formatting rules: https://eslint.org/blog/2023/10/deprecating-formatting-rules/

In ESLint v8.53.0, scheduled to be released on Friday, November 3, 2023, we will formally deprecate our formatting rules. Formatting rules are those rules that simply enforce code conventions around spacing, semicolons, string formats, etc.

The blog suggests using a code formatter (like Prettier), or adding ESLint Stylistic which is going to maintain the style rules separate from core.

We were using StandardJS directly, then via eslint settings, but I have found standard painful to maintain due especially to plugins needed for TypeScript and interested in looking at an alternative approach.

I am wondering about trying Prettier for the formatting, and ESLint for the linting?

Released in v12.1.0