summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-03-26 21:38:42 +0300
committerGitHub <noreply@github.com>2020-03-26 21:38:42 +0300
commit4aa0bc667bea03259f8bb26dba63795e74a86299 (patch)
treef31989196049dc78a45e29f057a375c202ed8405 /README.md
parent1380e3839788779a3402a0bf4fb1a3ba57c0d162 (diff)
parent2bdf5c87990e7ebcd338f15245ca1e937a361750 (diff)
downloadeslint-config-0.0.14.tar.xz
eslint-config-0.0.14.zip
Merge pull request #2 from valentineus/developv0.0.14
Develop
Diffstat (limited to 'README.md')
-rw-r--r--README.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/README.md b/README.md
index fbbcddd..d2dc37c 100644
--- a/README.md
+++ b/README.md
@@ -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).