Tooling question
If I want to like add eslint-plugin should I add both eslint and eslint-plugin and then override the rule in package.json,
Or is there another way to like set this? cause I know sapphire has it's rules
Solution:Jump to solution
Yes, unless by other way you meant using an .eslintrc file. You also don’t have to use sapphire’s config if you don’t want to. https://archive.eslint.org/docs/7.0.0/user-guide/configuring#:~:text=There%20are%20two%20primary%20ways%20to%20configure%20ESLint%3A,entire%20directory%20and%20all%20of%20its%20subdirectories.%20
ESLint - Pluggable JavaScript linter
Configuring ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
5 Replies
Solution
Yes, unless by other way you meant using an .eslintrc file. You also don’t have to use sapphire’s config if you don’t want to. https://archive.eslint.org/docs/7.0.0/user-guide/configuring#:~:text=There%20are%20two%20primary%20ways%20to%20configure%20ESLint%3A,entire%20directory%20and%20all%20of%20its%20subdirectories.%20
ESLint - Pluggable JavaScript linter
Configuring ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
So sapphire also contains eslint? So I don't have to add that + plugin node right?
@sapphire/eslint-config
Standard ESLint config for the Sapphire Community
❯ Author: sapphiredev
❯ Maintainers: favna, vladfrangu, and kyranet
❯ Latest version: 5.0.2
❯ License: MIT
❯ Date Created: <t:1599335717:d>
❯ Date Modified: <t:1701391777:d>
Dependencies:
@typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-prettier, eslint-plugin-prettier, prettier, and typescript
It’s not automatic.That’s impossible with eslint.
I see, I thought the IDE was using it realtime
I will check it out though