Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.38 KB

Shlink - JS coding standard

npm npm downloads GitHub license Paypal Donate

Coding standard used by Shlink JavaScript projects.

This library includes two ESLint configurations, the base one (which includes eslint and typescript recommended rules), and the react-specific one (which includes JSX accessibility, react and react hooks recommended rules).

Default export includes both:

// eslint.config.js
import shlink from '@shlinkio/eslint-config-js-coding-standard';

export default [
  ...shlink,
  {
    // Other rules...
  }
];

If the project does not use React, you can just use the base config:

// eslint.config.js
import { baseConfig } from '@shlinkio/eslint-config-js-coding-standard';

export default [
  ...baseConfig,
  {
    // Other rules...
  }
];