@yotsubacy/config
v1.15.3
Published
config guide
Downloads
774
Readme
Config
customize common config inspired by Vercel config.
ESLint
TypeScript
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,
},
},
},
};
Node
modules.exports = {
extends: [require.resolve('@yotsubacy/config/eslint/node')],
};
TypeScript
{
"extends": "@yotsubacy/config/typescript.json"
}