omnicalculator-eslint-config
v2.4.2
Published
This is opinionated eslint configuration preset we use at Omnicalculator.com
Downloads
1,694
Readme
Omni Calculator eslint config ⚙️
This is eslint configuration meant to be used across different projects and/or repositories within Omni Calculator company.
Usage
Prerequisites
- eslint — version 9.x must be installed in your projext.
Installation
Simply install omnicalculator-eslint-config with your favorite package manager as development dependency
npm install -D omnicalculator-eslint-config
#or
pnpm i -D omnicalculator-eslint-config
#or
yarn add -D omnicalculator-eslint-config
Usage
Use this configuration preset in you eslint.config.js
file. If you do not need to extend this configuration simply reexport:
// eslint.config.js
const omniCalculatorEslintConfig = require(' omnicalculator-eslint-config');
module.exports = omniCalculatorEslintConfig;
In case yoy need to extend thuis configuration simply add your config at the end to exported array:
// eslint.config.js
const omniCalculatorEslintConfig = require(' omnicalculator-eslint-config');
module.exports = [
...omniCalculatorEslintConfig,
{
files: ['**/legacy'],
rules: { complexity: 'off'},
}
];
Development
Prerequisites
Install
Install dependencies with:
$ pnpm install
Running
Once you installed depedencies you are good to start development, no other action is required.
Version update
- Open PR.
- Set the label with the version update, you need to apply:
major
,minor
orpatch
. - After merging the PR to the main, the version should be updated automatically according to the label.
Publication
To publish next version of this npm package just follow github instructions on creating and publishing release in github GUI. Make sure the tag you created corresponds to the current version in package.json.