Skip to content

ezetech/eslint-config

Repository files navigation

eslint-config

Sharable eslint config

development

  npm install

Install the correct versions of each package, which are listed by the command:

npm info "@ezetech/eslint-config@latest" peerDependencies

More info: ESLint sharable configuration

To publish NPM package:

  • Make sure you have empty working status and the working directory is clean
git status --porcelain
  • Pull the latest changes
git checkout main
git pull origin main
  • Update the version in package.json and package-lock.json files with next commands. For major version (^.0.0) use next command
npm version ---no-commit-hooks major

For minor version (0.^.0) use next command

npm version --no-commit-hooks minor

For patch version (0.0.^) use next command

npm version --no-commit-hooks patch

Commit and push changes.

  • Push new tag version.
git push origin <new_version>
  • Publish a public package
npm publish --access public

Note: npm publish require authorization. For NPM access ask PM.

  • Publish a private package
npm publish --access restricted --@ezetech:registry=https://npm.pkg.github.com

Note: npm publish require Github token.

NOTICE: you NEED to publish both versions: public and private

Potential problems

Probably, you could face some problems similar to this during update eslint-config pacakge in other repos

Cannot set properties of null (setting 'peer')

Just delete old version and install new

npm uninstall @ezetech/eslint-config

npm i @ezetech/eslint-config --save-dev

It is due to npm bug npm/cli#6860