summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-14 01:18:16 +0300
committereug-vs <eug-vs@keemail.me>2021-03-14 01:18:16 +0300
commit05ccf76dbbb54e52ae81a469f91b3660057058dc (patch)
treed0509803f8e9d092d7e423c439d67da8e0ca97ec /.eslintrc.json
parentc6fac69a8273ce20216002925deb0a2b5425dc25 (diff)
downloadcommercel-ui-05ccf76dbbb54e52ae81a469f91b3660057058dc.tar.gz
style: install eslint
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..ebaffd2
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,30 @@
+{
+ "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"],
+ "import/extensions": ["error", { "ts": "never", "tsx": "never" }],
+ "arrow-body-style": 0,
+ "no-underscore-dangle": 0,
+ "no-cond-assign": 0,
+ "no-nested-ternary": 0,
+ "linebreak-style": 0,
+ "object-curly-newline": 0,
+ "react/prop-types": 0,
+ "react/no-children-prop": 0,
+ "react/no-danger": 0,
+ "react/jsx-one-expression-per-line": 0,
+ "react/jsx-props-no-spreading": 0
+ }
+}