customize common config inspired by Vercel config.
const {resolve} = require('node:path');
const project = resolve(__dirname, 'tsconfig.json');
modules.exports = {
root: true,
extends: [
require.resolve('@yotsubacy/config/eslint/browser'),
require.resolve('@yotsubacy/config/eslint/react'),
require.resolve('@yotsubacy/config/eslint/typescript'),
],
// use typescript config
parserOptions: {
project,
},
settings: {
'import/resolver': {
typescript: {
project,
},
},
},
};
modules.exports = {
extends: [require.resolve('@yotsubacy/config/eslint/node')],
};
{
"extends": "@yotsubacy/config/typescript.json"
}