Which packages would you like to change?
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.)
|
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
Additional comments
No response
Which packages would you like to change?
espreeeslint-scopeeslint-visitor-keysWhat 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
jsrepository 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.)
js/eslint.config.js
Line 3 in d777273
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:
Participation
Additional comments
No response