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