Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit d75027b

Browse files
committed
Preset: ignore quotes validatation in jsx for airbnb preset
Fixes #2007
1 parent 4f938bc commit d75027b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

presets/airbnb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
"requireSemicolons": true,
7272
"safeContextKeyword": "_this",
7373
"validateLineBreaks": "LF",
74-
"validateQuoteMarks": "'",
74+
"validateQuoteMarks": { "mark": "'", "escape": true, "ignoreJSX": true },
7575
"validateIndentation": 2
7676
}

test/data/options/preset/airbnb.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// requireParenthesesAroundIIFE
22
(function(window) {
3+
<Foo
4+
superLongParam="bar"
5+
anotherSuperLongParam="baz"
6+
/>;
7+
38
// validateIndentation: 2
49
'use strict';
510

0 commit comments

Comments
 (0)