
npm install @smolpack/eslint-config!GitHub release (latest by date)
- Installation
- Usage
- Support
- Contributing
Follow these steps to get a copy of the config up and running.
``bash`
yarn add --dev \
@smolpack/eslint-config \
eslint \
@eslint/js \
typescript \
typescript-eslint \
eslint-plugin-import \
eslint-import-resolver-typescript \
eslint-config-prettier
This package is an ESM ESLint flat config preset.
1. Create (or update) your project’s eslint.config.mjs:
`js`
// eslint.config.mjs
export { default } from '@smolpack/eslint-config';
`js
// eslint.config.mjs
import smolpack from '@smolpack/eslint-config';
export default [
...smolpack,
{
ignores: ['dist/', 'coverage/', '.yarn/'],
},
{
rules: {
// Your local project overrides go here
},
},
];
`
2. Run ESLint:
`bash`
yarn eslint .
If you have any questions or run into any trouble, here's a way you can get help:
- Issue Tracker: Check out the issue tracker for this project to see if anyone else has had the same problem or to open a new issue.
Remember, the best way to get help is to provide as much information as you can about what you're trying to do, what steps you've taken, and what problems you're running into.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature'
3. Commit your Changes ()git push origin feature/AmazingFeature
4. Push to the Branch ()
5. Open a Pull Request
This repo uses ShellCheck to lint repository-tracked *.sh scripts.
#### Run locally
- This repo is pinned to Yarn via the packageManager field; if you see a Yarn version mismatch error, enable Corepack.
- Install ShellCheck (
- Run:
- yarn lint:shell
#### What to do when ShellCheck fails
- Prefer fixing the underlying issue.
- If you need to suppress a specific warning, use a narrow inline suppression with a justification comment, e.g.:
- # shellcheck disable=SC#### --
- Avoid global disables in .shellcheckrc.
Publishing is GitHub Release-driven.
- Configure the repository secret NPM_TOKEN with an npm automation token that has publish rights for @smolpack/eslint-config.
1. Bump package.json#version and commit.yarn prerelease
2. Run locally to validate linting, packaging, and import smoke tests.vX.Y.Z
3. Create a semver tag like (or prerelease vX.Y.Z-rc.1) pointing at that commit..github/workflows/release.yml` to validate and publish.
4. Create a GitHub Release for that tag and include human-readable release notes.
5. GitHub Actions runs