@vue-storefront/eslint-config
v3.1.3
Published
> Common eslint configuration used in alokai projects
Downloads
9,212
Readme
@vue-storefront/eslint-config
Common eslint configuration used in alokai projects
Usage
Install
yarn add -D eslint prettier @vue-storefront/eslint-config
Config .eslintrc
{
"extends": "@vue-storefront/eslint-config"
}
Without Prettier .eslintrc
If you do not want to use prettier
, you can easily compose your own config:
{
"extends": [
"@vue-storefront/eslint-config/ecma",
"@vue-storefront/eslint-config/typescript",
"@vue-storefront/eslint-config/json"
]
}
Usage with React .eslintrc
Vue Storefront React
specific linting rules.
{
"extends": [
"@vue-storefront/eslint-config",
"@vue-storefront/eslint-config/react"
]
}
Usage with Vue .eslintrc
Vue Storefront Vue
specific linting rules.
{
"extends": [
"@vue-storefront/eslint-config",
"@vue-storefront/eslint-config/vue"
]
}
Usage with Vue3 .eslintrc
Vue Storefront Vue3
specific linting rules.
{
"extends": [
"@vue-storefront/eslint-config",
"@vue-storefront/eslint-config/vue3"
]
}
Usage with NextJs .eslintrc
Vue Storefront NextJs
specific linting rules.
{
"extends": [
"@vue-storefront/eslint-config/next"
]
}