All-In-One Digital Engagement Platform
- Add this package to your devDependencies
$ npm i -D @smartlinkdev/eslint-config
# or
$ yarn add -D @smartlinkdev/eslint-config
- Install
eslint
if not already present locally or globally
$ npm i -D eslint
# or
$ yarn add -D eslint
- Create a
.eslintrc.js
file
$ touch .eslintrc.js
- Extend using the plugin
{
extends: [
'@smartlinkdev/eslint-config'
]
}
A full example .eslintrc.js
:
module.exports = {
root: true,
extends: [
'@smartlinkdev/eslint-config'
]
}
If you're using Vue, follow Getting Started section by replacing @smartlinkdev/eslint-config
by @smartlinkdev/eslint-config-vue
.
And in your .eslintrc.js
all you need is :
{
extends: [
'@smartlinkdev/eslint-config-vue'
]
}
MIT license - Smartlink Ventures, Inc.