From c1a8bfa68cd9e93bdee795ef292b1ddeb1f238c3 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Sat, 6 Jun 2020 19:57:15 +0300 Subject: style: configure eslint --- .eslintrc.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .eslintrc.json (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..0789840 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,25 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": [ + "airbnb-typescript", + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "project": "./tsconfig.json" + }, + "ignorePatterns": "dist/", + "rules": { + "jsx-quotes": ["error", "prefer-double"], + "quotes": ["error", "single"], + "no-multiple-empty-lines": [2, { "max": 2, "maxEOF": 1 } ], + "max-len": ["error", { "code": 120 }], + "arrow-parens": [2, "as-needed"], + "comma-dangle": ["error", "never"], + "arrow-body-style": 0, + "no-cond-assign": 0, + "linebreak-style": 0, + "react/prop-types": 0, + "react/no-children-prop": 0, + "react/no-danger": 0 + } +} \ No newline at end of file -- cgit v1.2.3