Below is the configuration setup for eslint. Trying to define a basic eslint rule to define const instead of let if its an array or object
"scripts": {
"lint": "eslint src/**/*.js --fix"
}
.eslintrc
"rules": {
"strict": [2, "never"],
"prefer-const": 2
}
vscode referring to .eslintrc file for the rule defined on prefer-const and throwing error in ide as below which is perfectly fine
But npm run lint is not giving any error on the same nor fixing the code
Attaching the folder structure below where eslintrc is located
What is missing in my script?


--fixflag? - Manish Gharat