1.0.3 • Published 4 years ago
@tantalum-config/eslint-config v1.0.3
eslint-config-tantalum
A highly opinionated ESLint configuration for Tantalum
How to use
Add a extend key to your eslint config file:
// .eslintrc.cjs
const withTantalumConfig = require('@tantalum-config/eslint-config');
module.exports = withTantalumConfig('<stack>' | ['<sets>'])({
rules: {
// Override the configuration
},
});Stacks
nextjsfor NextJS applications extends react and next/core-vitals (next must be installed of course).nestjsfor NestJS applications, extends back.
Sets
An empty array will set only the base configuration
backfor back-end or server-side code.nodefor node apps.reactfor react-based apps.