@ryze-digital/eslint-config-website
v1.0.1
Published
Enforces a consistent JavaScript code style for our website projects
Downloads
1,114
Maintainers
Readme
RYZE Digital ESLint Rules
Install
npm i @ryze-digital/eslint-config-website --save-devUsage
Add the following to your eslint.config.js:
import config from '@ryze-digital/eslint-config-website';
export default config;Add custom rules for your project
If you are using jQuery (for example), you might want to allow $ to be global.
import config from '@ryze-digital/eslint-config-website';
export default [
...config,
{
languageOptions: {
globals: {
$: 'readonly'
}
}
}
];