@valentineus/eslint-config
v0.0.22
Published
Personal ESLint configuration
Downloads
11
Readme
Configurations
javascript
typescript
react-javascript
react-typescript
vue-javascript
vue-typescript
Example
- Install dependencies:
npm install --save-dev @typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
@valentineus/eslint-config \
eslint \
eslint-plugin-eslint-comments \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-security \
eslint-plugin-sonarjs \
eslint-plugin-unicorn \
eslint-plugin-vue
# or
yarn add --dev @typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
@valentineus/eslint-config \
eslint \
eslint-plugin-eslint-comments \
eslint-plugin-import \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-security \
eslint-plugin-sonarjs \
eslint-plugin-unicorn \
eslint-plugin-vue
- Create config file:
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"@valentineus/eslint-config/vue-typescript"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"createDefaultProgram": true,
"ecmaVersion": 2020,
"project": "tsconfig.json",
"sourceType": "module",
"tsconfigRootDir": "."
},
"rules": {}
}
License
Apache-2.0. Copyright (c) Valentin Popov.