diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-03-17 09:10:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 09:10:48 +0100 |
commit | de4365079bad2df3bdee2133576dc913ffbf1ab2 (patch) | |
tree | a522ccb952f0d37f454e8188e13b3dec3f731912 /server/sonar-web/.eslintrc | |
parent | 6a03df65cc0c91a26150ea172a2c480e07326ea1 (diff) | |
download | sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.tar.gz sonarqube-de4365079bad2df3bdee2133576dc913ffbf1ab2.zip |
format code using prettier (#1774)
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r-- | server/sonar-web/.eslintrc | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc index be74c6cf9b4..ba0bff8dff3 100644 --- a/server/sonar-web/.eslintrc +++ b/server/sonar-web/.eslintrc @@ -47,16 +47,6 @@ "func-name-matching": 2, "func-names": [2, "never"], "generator-star-spacing": 2, - "indent": [2, 2, { - "ArrayExpression": 1, - "CallExpression": { "arguments": 1 }, - "MemberExpression": 2, - "ObjectExpression": 1, - "FunctionDeclaration": { "body": 1, "parameters": 2 }, - "FunctionExpression": { "body": 1, "parameters": 2 }, - "SwitchCase": 1, - "VariableDeclarator": 2 - }], "jsx-quotes": 2, "key-spacing": 2, "keyword-spacing": 2, @@ -88,7 +78,7 @@ "semi": [2, "always"], "semi-spacing": 2, "space-before-blocks": 2, - "space-before-function-paren": 2, + "space-before-function-paren": [2, "never"], "space-in-parens": 2, "space-unary-ops": 2, "template-curly-spacing": 2, @@ -146,22 +136,21 @@ "jsx-a11y/tabindex-no-positive": 2, "react/jsx-boolean-value": [2, "always"], - "react/jsx-closing-bracket-location": [2, "after-props"], + "react/jsx-closing-bracket-location": 2, "react/jsx-curly-spacing": [2, "never"], "react/jsx-equals-spacing": [2, "never"], "react/jsx-key": 2, "react/jsx-no-duplicate-props": 2, "react/jsx-no-undef": 2, "react/jsx-pascal-case": 2, - "react/jsx-space-before-closing": [2, "never"], + "react/jsx-space-before-closing": 2, "react/jsx-tag-spacing": [2, { "closingSlash": "never", - "beforeSelfClosing": "never", + "beforeSelfClosing": "always", "afterOpening": "never" }], "react/jsx-uses-react": 2, "react/jsx-uses-vars": 2, - "react/jsx-wrap-multilines": 2, "react/no-children-prop": 2, "react/no-danger-with-children": 2, "react/no-deprecated": 2, |