Skip to content

Commit

Permalink
fix: setting project relative to .eslintrc.js
Browse files Browse the repository at this point in the history
VSCode was having issues finding the tsconfig.json because frontend-base existed in a larger workspace, and so it was looking for it in the root of the workspace.  This makes it look relative to the actual file trying to use it, which should work regardless of anyone’s workspace structure.
  • Loading branch information
davidjoy committed Jul 5, 2024
1 parent 809f5f4 commit b9ebd68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const path = require('path');

const { createConfig } = require('.');

module.exports = createConfig('eslint', {
parserOptions: {
project: './tsconfig.json',
project: path.resolve(__dirname, './tsconfig.json'),
},
rules: {
'no-console': 'off',
Expand Down

0 comments on commit b9ebd68

Please sign in to comment.