diff options
author | KillyMXI | 2017-06-02 19:07:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-06-03 15:08:20 +0300 |
commit | 7817d34a3f012f6c2cd446b70f97d6dcc72e6170 (patch) | |
tree | c91b1f4b0c734c8065772341ef2b77f5c27c7afe /juick-www/.eslintrc | |
parent | 1fc31d9d94696be3a3c34e2652ad90ee95f76481 (diff) |
eslint rules
Diffstat (limited to 'juick-www/.eslintrc')
-rw-r--r-- | juick-www/.eslintrc | 43 |
1 files changed, 34 insertions, 9 deletions
diff --git a/juick-www/.eslintrc b/juick-www/.eslintrc index 70f0fc89..12d9a477 100644 --- a/juick-www/.eslintrc +++ b/juick-www/.eslintrc @@ -9,24 +9,49 @@ // features, you will need to enable a custom parser // as described in a section below. "parserOptions": { - "ecmaVersion": 6, "sourceType": "module" }, "env": { "browser": true, - "node": true + "node": true, + "es6": true }, // Enable custom plugin known as eslint-plugin-react "plugins": [ // "react" ], + // http://eslint.org/docs/rules/ "rules": { - // Disable `no-console` rule - "no-console": 0, - // Give a warning if identifiers contain underscores - "no-underscore-dangle": 1, - // Default to single quotes and raise an error if something - // else is used - "quotes": [2, "single"] + "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", + "linebreak-style": ["warn", "windows"], + "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 newline at end of file |