-
-
Notifications
You must be signed in to change notification settings - Fork 215
Description
Which packages would you like to change?
-
espree
-
eslint-scope
-
eslint-visitor-keys
What problem do you want to solve?
Hi,
In this issue, I'd like to suggest adding Prettier as a code formatting tool for this repository.
Currently, the js
repository doesn't have a dedicated formatter, unlike other repositories such as rewrite and eslint, which both use Prettier.
The absence of a formatter has caused some inconvenience for me, especially while working on #667.
Although we now have a formatting setup through the ESLint config, I don't think it's quite enough since it only applies to JavaScript. (Also, as far as I know, the modern approach is to separate linting and formatting logic.)
Line 3 in d777273
import eslintConfigESLintFormatting from "eslint-config-eslint/formatting"; |
So, in conclusion, I'd like to suggest adding Prettier to this repository.
What do you think is the correct solution?
I'll follow the configuration used throughout the ESLint repository, as shown below:
// prettier.config.js
export default {
useTabs: true,
tabWidth: 4,
arrowParens: "avoid",
overrides: [
{
files: ["*.json"],
options: {
tabWidth: 2,
useTabs: false,
},
},
],
};
Participation
- I am willing to submit a pull request for this change.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status