From 670913698776e09b7ff44f44ccdcf56303d79be3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 6 Sep 2018 13:58:40 +0300 Subject: merge legacy www --- juick-server/.eslintrc | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 juick-server/.eslintrc (limited to 'juick-server/.eslintrc') diff --git a/juick-server/.eslintrc b/juick-server/.eslintrc new file mode 100644 index 00000000..5328a00b --- /dev/null +++ b/juick-server/.eslintrc @@ -0,0 +1,60 @@ +{ + // Extend existing configuration + // from ESlint and eslint-plugin-react defaults. + "extends": [ + "eslint:recommended" + //, "plugin:react/recommended" + ], + // Enable ES6 support. If you want to use custom Babel + // features, you will need to enable a custom parser + // as described in a section below. + "parserOptions": { + "sourceType": "module" + }, + "env": { + "browser": true, + "node": true, + "es6": true + }, + // Enable custom plugin known as eslint-plugin-react + "plugins": [ + // "react" + "only-ascii" + ], + // http://eslint.org/docs/rules/ + "rules": { + "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"], + //"indent": ["warn", 2], + "no-tabs": "warn", + "eol-last": "warn", + "comma-style": "warn", + "curly": "warn", + //"no-var": "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": "✓" }] // "excludePaths": ["i18n.js"] + } +} -- cgit v1.2.3