Skip to content

Commit

Permalink
Fix ESLint config when using Pycharm
Browse files Browse the repository at this point in the history
Pycharm otherwise raises error about ESLint being unable to read the
referenced file.
  • Loading branch information
rakyi committed Apr 10, 2024
1 parent 154574f commit b9dbbed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const path = require('node:path');

module.exports = {
extends: [
"plugin:react/recommended",
Expand All @@ -12,7 +14,7 @@ module.exports = {
ecmaFeatures: {
jsx: true,
},
project: "./tsconfig.eslint.json",
project: path.join(__dirname, "tsconfig.eslint.json"),
ecmaVersion: "latest",
},
overrides: [
Expand Down

0 comments on commit b9dbbed

Please sign in to comment.