@shlinkio/eslint-config-js-coding-standard
v3.5.0
Published
Coding standard used by shlink JavaScript projects
Downloads
5,020
Maintainers
Readme
Shlink - JS coding standard
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...
}
];