Skip to content

Coding standard used by shlink JavaScript projects

License

Notifications You must be signed in to change notification settings

acelaya-forks/js-coding-standard

 
 

Repository files navigation

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...
  }
];

About

Coding standard used by shlink JavaScript projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.8%
  • Shell 3.2%