Shared lint configuration package with various base configurations which can be extended by your project's eslint
, stylelint
& prettier
configuration
This package is a complete lint configuration including eslint
, stylelint
& prettier
. These are the base configurations for linting your code.
Simply install the package by running:
yarn add -D @sebalaini/sebalaini-lints-config
alternatively you can use npm
or your preferred package manager.
By default, the package exports the Eslint eslint-config-next
configuration, extend these in your project's configuration file as needed.
The Eslint configuration exported by default includes eslint-config-next
prettier
& tailwindcss
.
Add the below code to your .eslintrc.js
file.
extends: ['@sebalaini/sebalaini-lints-config'],
or
extends: ['@sebalaini/sebalaini-lints-config/next'],
This config includes specific Next.js & TypeScript rules.
Add the below code to your .stylelintrc.js
file.
extends: ['@sebalaini/sebalaini-lints-config/stylelintrc'],
Add the below code to your .prettierrc.js
file.
module.exports = {
...require('@sebalaini/sebalaini-lints-config/prettierrc'),
}
Released under MIT by @sebalaini.
Run yarn changeset
to add a new release.