This is an easy-to-use package of ESLint presets.
npm install @yutahaga/eslint-config-standard \
@yutahaga/eslint-config-typescript \
@yutahaga/eslint-config-prettier -D
yarn add @yutahaga/eslint-config-standard \
@yutahaga/eslint-config-typescript \
@yutahaga/eslint-config-prettier -D
module.exports = {
extends: [
'eslint:recommended',
'@yutahaga/standard',
'@yutahaga/typescript'
]
}
module.exports = {
extends: [
'eslint:recommended',
'@yutahaga/standard/prettier',
'@yutahaga/typescript/prettier',
'@yutahaga/prettier'
]
}
You can also apply plugin:vue/essential
presets.
module.exports = {
extends: ['@yutahaga/vue/essential']
}
Of course, you can apply prettier too.
module.exports = {
extends: ['@yutahaga/vue/essential/prettier', '@yutahaga/prettier']
}
This preset contains the following presets.
module.exports = {
extends: ['@yutahaga/vue-all-in-one'],
parser: require.resolve('vue-eslint-parser'),
}
This preset contains the following presets.
module.exports = {
extends: ['@yutahaga/react-all-in-one']
}
- babel
- es-modules
- prettier
- react
- react-all-in-one
- standard
- standard-all-in-one
- typescript
- vue
- vue-all-in-one
MIT © 2018 Yuta Haga