6.6.7 • Published 4 years ago
@deepvision/eslint-config v6.6.7
DeepVision ESLint config
Inspired by AirBnB ESLint config
Install
ESLint
npm install eslint --save-dev
Latest version of config
npm install @deepvision/eslint-config --save-dev
Usage
ES2019
Install Babel parser
npm install babel-eslint --save-dev
Create .eslintrc.js file
module.exports = {
root: true,
parser: 'babel-eslint',
extends: [
'@deepvision',
],
...
}
In package.json add new script
{
...
"scripts": [
...
"lint": "eslint ."
]
...
}
Run lint
npm run lint
Vue.js
Install Vue parser
npm install vue-eslint-parser --save-dev
Create .eslintrc.js file
module.exports = {
root: true,
extends: [
'@deepvision',
'@deepvision/eslint-config/plugins/vue',
],
...
}
In package.json add new script
{
...
"scripts": [
...
"lint": "eslint ."
]
...
}
Run lint
npm run lint
React.js
Install React plugin
npm install eslint-plugin-react --save-dev
Create .eslintrc.js file
module.exports = {
root: true,
extends: [
'@deepvision',
'@deepvision/eslint-config/plugins/react',
],
...
}
In package.json add new script
{
...
"scripts": [
...
"lint": "eslint ."
]
...
}
Run lint
npm run lint
Typescript
Install Typescript plugin
npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev
Create .eslintrc.js file
module.exports = {
root: true,
extends: [
'@deepvision',
'@deepvision/eslint-config/plugins/typescript',
],
parserOptions: {
project: './tsconfig.json',
},
...
}
In package.json add new script
{
...
"scripts": [
...
"lint": "eslint src tests --ext ts"
]
...
}
Run lint
npm run lint
6.6.7
4 years ago
6.6.6
4 years ago
6.6.5
4 years ago
6.6.3
4 years ago
6.6.4
4 years ago
6.6.2
5 years ago
6.6.1
5 years ago
6.6.0
5 years ago
6.2.0
5 years ago
6.1.9
5 years ago
6.1.7
5 years ago
6.1.5
5 years ago
6.1.3
5 years ago
6.1.2
5 years ago
6.1.1
5 years ago
6.1.0
5 years ago
6.0.4
5 years ago
6.0.3
5 years ago
6.0.2
5 years ago
6.0.1
5 years ago
5.16.2
5 years ago
5.16.1
5 years ago
5.16.0
5 years ago
5.6.3
6 years ago
5.6.1
6 years ago
5.6.0
6 years ago