Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
how to set eslint rules globally?

I am new in Eslint, and I was trying to set theses rules globally, so i don't have to write them in all projects everytimes. So, in my .eslintrc.json file i wrote:

"rules": {
    
    "no-unused-vars":"warn",
    "prefer-const":"warn",
    "quotes":"off",
    "space-before-blocks":"warn",
    "space-in-parens":"warn",
    "space-before-function-paren":"warn"
    
}

How can I achieve that?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

From the manual:

The first way to use configuration files is via .eslintrc.* and package.json files. ESLint will automatically look for them in the directory of the file to be linted, and in successive parent directories all the way up to the root directory of the filesystem (/), the home directory of the current user (~/), or when root: true is specified.

So just put the file in your home directory.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!