Shared TypeScript Eslint config for my projects
npm i -D @cycraft/eslint
It will install these packages for you, so you don't have to include them in your package dependencies:
@eslint/js
@types/node
eslint
eslint-config-prettier
eslint-plugin-unicorn
prettier
prettier-plugin-jsdoc
typescript
typescript-eslint
eslint.config.js
import config from '@cycraft/eslint/config'
export default config
.prettierrc.js
import prettier from '@cycraft/eslint/prettier'
export default prettier
import config from '@cycraft/eslint/config'
export default [
{
ignores: ['**/dist/*'],
},
...config,
{
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
]