diff options
author | Valentin Popov <info@valentineus.link> | 2020-03-26 21:38:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 21:38:42 +0300 |
commit | 4aa0bc667bea03259f8bb26dba63795e74a86299 (patch) | |
tree | f31989196049dc78a45e29f057a375c202ed8405 /README.md | |
parent | 1380e3839788779a3402a0bf4fb1a3ba57c0d162 (diff) | |
parent | 2bdf5c87990e7ebcd338f15245ca1e937a361750 (diff) | |
download | eslint-config-b541ca2d9f8bc6901e771918a8018865d2f07df4.tar.xz eslint-config-b541ca2d9f8bc6901e771918a8018865d2f07df4.zip |
Merge pull request #2 from valentineus/developv0.0.14
Develop
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 55 |
1 files changed, 55 insertions, 0 deletions
@@ -1 +1,56 @@ # Personal ESLint configuration + +## Configurations + +* `javascript` +* `typescript` +* `vue-javascript` +* `vue-typescript` + +## Example + +* Install dependencies: + +```shell script +npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser \ + @valentineus/eslint-config eslint eslint-plugin-eslint-comments \ + eslint-plugin-import 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-security eslint-plugin-sonarjs \ + eslint-plugin-unicorn eslint-plugin-vue +``` + +* Create config file: + +```json +{ + "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](LICENSE.txt). +Copyright (c) [Valentin Popov](mailto:info@valentineus.link). |