From 7f25b0f261b5a5fc2696054004fb24673375b91b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 01:32:43 +0300 Subject: Proptypes & eslint --- vnext/.eslintrc | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 vnext/.eslintrc (limited to 'vnext/.eslintrc') diff --git a/vnext/.eslintrc b/vnext/.eslintrc new file mode 100644 index 00000000..e3d8a85c --- /dev/null +++ b/vnext/.eslintrc @@ -0,0 +1,56 @@ +{ + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], + "parser": "babel-eslint", + "parserOptions": { + "sourceType": "module", + "allowImportExportEverywhere": false, + "codeFrame": false + }, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "plugins": [ + "babel", + "react", + "only-ascii" + ], + "rules": { + "strict": 0, + "no-console": "off", + "no-underscore-dangle": "warn", + "quotes": ["error", "single"], + + "no-const-assign": "warn", + "no-this-before-super": "warn", + "no-unreachable": "warn", + "no-undef": "warn", + "constructor-super": "warn", + "valid-typeof": "warn", + "no-eq-null": "warn", + "no-shadow-restricted-names": "warn", + "no-trailing-spaces": "warn", + "semi": "warn", + "keyword-spacing": "warn", + "block-spacing": "warn", + "arrow-spacing": "warn", + "semi-spacing": "warn", + "brace-style": ["warn", "1tbs", { "allowSingleLine": true }], + "dot-location": ["warn", "property"], + "no-tabs": "warn", + "eol-last": "warn", + "comma-style": "warn", + "curly": "warn", + "no-shadow": "off", + "no-cond-assign": "off", + "no-sparse-arrays": "off", + "no-unused-vars": "off", + "no-useless-escape": "off", + + "only-ascii/only-ascii": ["warn", { "allowedChars": "✓" }] + } +} -- cgit v1.2.3