aboutsummaryrefslogtreecommitdiff
path: root/vnext/.eslintrc
diff options
context:
space:
mode:
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": "✓" }]
+ }
+}