-
-
Notifications
You must be signed in to change notification settings - Fork 208
Description
What version of eslint are you using?
7.31.0
What version of prettier are you using?
2.3.2
What version of eslint-plugin-prettier are you using?
3.4.0
Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
.prettierrc
{ "tabWidth": 4, "useTabs": false }
.eslintrc.js
module.exports = {
env: {
browser: true,
jest: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "prettier"],
rules: {
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/forbid-prop-types": [0, { forbid: ["any"] }],
"react/prop-types": [
"off",
{ ignore: "ignore", customValidators: "customValidator" },
],
},
};
What did you expect to happen?
After editing the prettierrc file and modifying the rules the changes should immediately show in the file that's linted.
What actually happened?
The file was linted with the previous rules of the prettierrc file, it seems the rules are cached somewhere. Only after restarting VS Code or with the VS Code command "ESLint: Restart ESLint Server" the changes will apply.
This issue was also mentioned at the of the thread in this ticket: #103