aboutsummaryrefslogtreecommitdiff
path: root/vnext/.eslintrc
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 01:32:43 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit7f25b0f261b5a5fc2696054004fb24673375b91b (patch)
tree38ee591e176b4799e39eff7a16f1950e017e7bb4 /vnext/.eslintrc
parent88732ba8c06c23a93f7248b6eabc182f38be3d33 (diff)
Proptypes & eslint
Diffstat (limited to 'vnext/.eslintrc')
-rw-r--r--vnext/.eslintrc56
1 files changed, 56 insertions, 0 deletions
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": "✓" }]
+ }
+}