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 on their own entry points:

  • /base: includes recommended eslint, typescript and imports rules
  • /react includes recommended JSX accessibility, react, react hooks and react compiler rules.

The default entry point includes both of them:

// 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/base';

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

If you need to access react rules independently, use the /react entry point:

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

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

About

Coding standard used by shlink JavaScript projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.0%
  • Shell 4.0%