From 5c7c3e4234c961307aabcdaee477d77ea14d7006 Mon Sep 17 00:00:00 2001 From: David Harush Date: Wed, 20 May 2020 16:25:05 +0300 Subject: [PATCH] eslint dev --- dev.eslintrc.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dev.eslintrc.js diff --git a/dev.eslintrc.js b/dev.eslintrc.js new file mode 100644 index 0000000..8f1ea99 --- /dev/null +++ b/dev.eslintrc.js @@ -0,0 +1,26 @@ +module.exports = { + parser: '@typescript-eslint/parser', + plugins: ['react'], + parserOptions: { + project: './tsconfig.json', + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + "jsx": true + } + }, + "settings": { + "react": { + "version": "detect" + } + }, + rules: { + "no-console": 2, + "no-alert": 2, + "no-debugger": 2, + "react/self-closing-comp": ["error", { + "component": true, + "html": true + }] + }, + } \ No newline at end of file