Shared ESLint configurations for TypeScript projects
Installing a package
on Working with the npm registry
tsconfig.json
required
npm i -D @catsmiaow/eslint-config eslint vitest prettier
.eslintrc
{
"extends": "@catsmiaow/eslint-config",
"rules": {}
}
.prettierrc
{
"printWidth": 140,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always"
}