@eustylelab/eslint-config
v0.0.6
Published
This package provides an extensible shared ESLint config for EUSTYLE LABORATORY developers.
Downloads
46
Readme
@eustylelab/eslint-config
EUSTYLE LABORATORY Standard ESLint Config
How to use
For JavaScript
Install
yarn add --dev eslint @eustylelab/eslint-config
.eslintrc.js
module.exports = {
root: true,
extends: [
'@eustylelab'
]
}
For TypeScript
Install
yarn add --dev \
eslint \
@eustylelab/eslint-config \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-import-resolver-typescript
.eslintrc.js
module.exports = {
root: true,
extends: [
'@eustylelab'
],
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
'@eustylelab/eslint-config/typescript'
]
}
]
}
For TypeScript + Vue.js
Install
yarn add --dev \
eslint \
@eustylelab/eslint-config \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-import-resolver-typescript \
eslint-plugin-vue
.eslintrc.js
module.exports = {
root: true,
extends: [
'@eustylelab'
],
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
'@eustylelab/eslint-config/typescript'
]
},
{
files: ['*.vue'],
extends: [
'@eustylelab/eslint-config/typescript',
'@eustylelab/eslint-config/vue'
]
}
]
}
For TypeScript + Nuxt.js
Install
yarn add --dev \
eslint \
@eustylelab/eslint-config \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-import-resolver-typescript \
eslint-plugin-vue
.eslintrc.js
module.exports = {
root: true,
extends: [
'@eustylelab'
],
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
'@eustylelab/eslint-config/typescript'
]
},
{
files: ['*.vue'],
extends: [
'@eustylelab/eslint-config/typescript',
'@eustylelab/eslint-config/vue',
'@eustylelab/eslint-config/nuxt'
]
}
]
}