@sweetalert2/eslint-config
v1.2.1
Published
ESLint shareable config for the SweetAlert2 JS/TS coding style
Downloads
2,454
Readme
ESLint shareable config for the SweetAlert2 JS/TS coding style
ESLint shareable config for the SweetAlert2 JS/TS coding style
Installation
$ npm install --save-dev @sweetalert2/eslint-configor
$ yarn add --dev @sweetalert2/eslint-configUsage
Once the @sweetalert2/eslint-config package is installed, you can use it by specifying @sweetalert2/eslint-config in the extends section of your ESLint configuration.
import sweetAlert2EslintConfig from '@sweetalert2/eslint-config'
// eslint.config.js
export default [
...sweetAlert2EslintConfig,
{
// Additional, project-specific rules...
},
]