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,
"rules": {
"node/no-process-env": "error"
},
"rules": {
"node/no-process-env": "error"
},
Or is there another way to like set this? cause I know sapphire has it's rules
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.
Jump to solution
5 Replies
Solution
Favna
Favna7mo ago
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.
Slime
Slime7mo ago
So sapphire also contains eslint? So I don't have to add that + plugin node right?
Spinel
Spinel7mo ago
@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
Favna
Favna7mo ago
It’s not automatic.That’s impossible with eslint.
Slime
Slime7mo ago
I see, I thought the IDE was using it realtime I will check it out though
Want results from more Discord servers?
Add your server
More Posts