eslint-config-softdev

Shareable config for eslint

Usage no npm install needed!

<script type="module">
  import eslintConfigSoftdev from 'https://cdn.skypack.dev/eslint-config-softdev';
</script>

README

Shareable eslint rules

Features:

  • Avoid duplicated rules configuration in multiple projects
  • Add, remove, update rules in one place
  • Easy to share across projects
  • Easy to update within each project

Install the library into your project

npm install --save-dev eslint-config-softdev

Create .eslintrc.json file under project root

{
    "extends": "eslint-config-softdev"
}

Update package.json scripts section with

"lint": "eslint ./"

Verify code against rules

npm run lint

Update project dev dependencies with latest rules

npm update --save-dev