aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-19 13:15:48 +0300
committerValentin Popov <info@valentineus.link>2020-02-19 13:15:48 +0300
commit9ea945c950d2c99261182e6771c09ae0e4aef53e (patch)
tree64b2e3455967eea1c19fe39460715fb8d6a1d32a
parent99f00817e0c27f51699505eaeac1951776b42d73 (diff)
downloadeslint-config-9ea945c950d2c99261182e6771c09ae0e4aef53e.tar.xz
eslint-config-9ea945c950d2c99261182e6771c09ae0e4aef53e.zip
feat(eslint): jsx-quotes
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/javascript/default.json16
2 files changed, 11 insertions, 7 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 53be5c7..0805894 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -53,7 +53,7 @@
- [X] "indent"
- [X] "indent-legacy"
- [ ] "init-declarations"
-- [ ] "jsx-quotes"
+- [X] "jsx-quotes"
- [X] "key-spacing"
- [X] "keyword-spacing"
- [ ] "line-comment-position"
diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json
index 2ff7b63..78bc025 100644
--- a/src/rules/javascript/default.json
+++ b/src/rules/javascript/default.json
@@ -121,6 +121,10 @@
"indent-legacy": [
"off"
],
+ "jsx-quotes": [
+ "error",
+ "prefer-double"
+ ],
"key-spacing": [
"error",
{
@@ -181,12 +185,6 @@
"tabWidth": 4
}
],
- "no-param-reassign": [
- "warn",
- {
- "props": true
- }
- ],
"max-lines": [
"off"
],
@@ -343,6 +341,12 @@
"no-octal-escape": [
"error"
],
+ "no-param-reassign": [
+ "warn",
+ {
+ "props": true
+ }
+ ],
"no-path-concat": [
"error"
],