Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make .eslintrc accept single quotes

I am facing this error when I 'npm start' my project:

enter image description here

I already know the problem is in the .eslintrc file so I added this:

"rules": {
    "quotes": [2, "single"],
}

and it's not working and it's the only solution I know

Update:

I tried deleting eslintConfig from package.json and it didn't work

and also "quotes": ["error", "single"] didn't work

like image 953
mai mohamed Avatar asked Sep 13 '25 12:09

mai mohamed


1 Answers

You can try to turn the rule off by passing 0 in the .eslintrc config file:

{
  "rules": {
    "quotes": [0, "single"]
  }
}
like image 71
Gh05d Avatar answered Sep 16 '25 03:09

Gh05d