about summary refs log tree commit diff
path: root/.eslintrc.yml
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-06 10:56:36 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-06 03:56:36 +0200
commit7a7bfa5170605710fb2506ad714b134c9e45206f (patch)
tree4e15099f433ed0bbf9b921328bf50854ee2a441a /.eslintrc.yml
parente969c7864529900ebb106769883000cbe8752ec9 (diff)
Add quotes ESLint rules (#3602)
* Add quotes ESLint rule

* Add jsx-quotes ESlint rule

* Sort ESLint rules
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml54
1 files changed, 30 insertions, 24 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 8d1bbc43a..2176618fa 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -21,22 +21,10 @@ parserOptions:
 
 rules:
 
-  no-cond-assign: error
-  no-console: warn
-  no-irregular-whitespace: error
-  no-unreachable: error
-  valid-typeof: error
-  consistent-return: error
-  dot-notation: error
-  eqeqeq: error
-  no-fallthrough: error
-  no-unused-expressions: error
-  strict: off
-  no-catch-shadow: error
-  indent:
-  - warn
-  - 2
   brace-style: warn
+  comma-dangle:
+  - error
+  - always-multiline
   comma-spacing:
   - warn
   - before: false
@@ -44,25 +32,43 @@ rules:
   comma-style:
   - warn
   - last
+  consistent-return: error
+  dot-notation: error
+  eqeqeq: error
+  indent:
+  - warn
+  - 2
+  jsx-quotes:
+  - error
+  - prefer-single
+  no-catch-shadow: error
+  no-cond-assign: error
+  no-console: warn
+  no-fallthrough: error
+  no-irregular-whitespace: error
   no-mixed-spaces-and-tabs: warn
   no-nested-ternary: warn
   no-trailing-spaces: warn
-  semi: error
+  no-unreachable: error
+  no-unused-expressions: error
+  object-curly-spacing:
+  - error
+  - always
   padded-blocks:
   - error
   - classes: always
-  comma-dangle:
+  quotes:
   - error
-  - always-multiline
-  object-curly-spacing:
-  - error
-  - always
+  - single
+  semi: error
+  strict: off
+  valid-typeof: error
 
-  react/jsx-wrap-multilines: error
   react/jsx-no-bind: error
-  react/self-closing-comp: error
-  react/prop-types: error
+  react/jsx-wrap-multilines: error
   react/no-multi-comp: off
+  react/prop-types: error
+  react/self-closing-comp: error
 
   jsx-a11y/accessible-emoji: warn
   jsx-a11y/anchor-has-content: warn