fix: no longer need to run yarn watch to fix eslint unresolved imports in vs code
This commit is contained in:
parent
22036000a6
commit
db8c309954
|
@ -2,6 +2,11 @@ module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
settings: {
|
settings: {
|
||||||
'import/core-modules': ['electron'],
|
'import/core-modules': ['electron'],
|
||||||
|
'import/resolver': {
|
||||||
|
node: {
|
||||||
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||||
|
},
|
||||||
|
},
|
||||||
react: {
|
react: {
|
||||||
version: 'detect',
|
version: 'detect',
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
const ignoredFiles = ['package.json', 'yarn.lock', 'tsconfig.json', '.lintstagedrc.js'];
|
const ignoredFiles = [
|
||||||
|
'package.json',
|
||||||
|
'yarn.lock',
|
||||||
|
'tsconfig.json',
|
||||||
|
'.lintstagedrc.js',
|
||||||
|
'.eslintrc.js',
|
||||||
|
];
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue