@saashub/qoq-eslint-v9-js-jest
v2.0.1
Published
Eslint flat config template for JS + Jest
Readme
@saashub/qoq-eslint-v9-js-jest
Rationale
Beign tired of setting up Eslint all over again for new projects, on top of v9 flatConfig , we created some base template for different setups (check all @saashub/qoq-eslint-v9-* packages). Configs inherit from base ones and includes all necessary packages and settings. Rules are opinionated, configured from years of development experience, can be used as full setup without any tweaks or as base to Your own configs.
Install
npm install @saashub/qoq-eslint-v9-js-jestUsage
Package exports both CommonJS and ESM code just import it in Your eslint config file.
For CommonJS
const jsBaseConfig = require("@saashub/qoq-eslint-v9-js-jest");
module.exports = [
{
...jsBaseConfig,
files: [...]
}
]For ESM
import jsBaseConfig from '@saashub/qoq-eslint-v9-js-jest';
export default [
{
...jsBaseConfig,
files: [...]
}
];Rules preview with ESLint Config Inspector
To preview all rules defined by this config simply run:
npx -y @saashub/qoq-eslint-v9-js-jestLast but not least
Feel free to join us, please read General Contributing Guidelines
CLI technical documentation can be found here
