eslint-config-lacussoft
v2.3.0
Published
Base ESLint configuration for JavaScript, TypeScript, React, React Native & Vue projects, by LacusSoft
Downloads
62
Maintainers
Readme
ESlint Configuration Presets - by LacusSoft
This package provides LacuSoft's base linting configurations for ESlint, in JavaScript projects environments.
$ npm install -D eslint eslint-config-lacussoft
Standard preset
For vanilla JavaScript projects:
// .eslintrc file
{
"extends": [
"lacussoft"
]
}
TypeScript preset
For TypeScript projects:
// .eslintrc file
{
"extends": [
"lacussoft", // optional
"lacussoft/typescript"
]
}
React preset
For React projects using React and JSX syntax:
// .eslintrc file
{
"extends": [
"lacussoft", // optional
"lacussoft/typescript", // optional (if using TypeScript)
"lacussoft/react"
]
}
React Native preset
For React projects using React Native (it extends all configuration from the react
preset):
// .eslintrc file
{
"extends": [
"lacussoft", // optional
"lacussoft/typescript", // optional (if using TypeScript)
"lacussoft/react-native"
]
}
Vue preset
For Vue 3 (default) projects:
// .eslintrc file
{
"extends": [
"lacussoft", // optional
"lacussoft/typescript", // optional (if using TypeScript)
"lacussoft/vue"
]
}
...or if using Vue 2:
// .eslintrc file
{
"extends": [
"lacussoft", // optional
"lacussoft/typescript", // optional (if using TypeScript)
"lacussoft/vue/v2"
]
}