Shareable ESLint config for Valora TypeScript packages.
Add the ESLint config in your package:
yarn add @valora/eslint-config-typescript --dev
and add all the peerDependencies
.
Add a script to your package.json like:
{
"scripts": {
"lint": "eslint --ext=.tsx,.ts src/"
}
}
and create a .eslintrc.js
file:
module.exports = {
extends: ['@valora/eslint-config-typescript'],
// The @typescript-eslint/no-floating-promises and @typescript-eslint/no-misused-promises
// plugins require a full compilation, so pass the `tsconfig.json` config file.
parserOptions: {
project: './tsconfig.json',
},
ignorePatterns: ['**/__mocks__/**', '**/lcov-report/**', 'vendor', '.bundle'],
}
ESLint Shareable Configs.
- Reporting issues
- Submitting a pull request
- Publishing updates is done automatically via semantic-release. Remember to use conventional commits or your PR will be rejected (since merging it would mess up the changelog and version numbers).