Unexpected usage of singlequote. Open
<label className='file-upload-label' disabled>{input.value ? input.value : __('No File Chosen')}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<div className='file-upload'>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<span className='file-button' tabIndex='0'>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<span className='file-button' tabIndex='0'>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<label className='file-button-label' htmlFor={input.name}>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<span className='buttonText'>{__('Choose File')}</span>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<input className='file-upload-input' id={input.name} {...input} />
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Unexpected usage of singlequote. Open
<label className='bx--label'>{label}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
enforce the consistent use of either double or single quotes in JSX attributes (jsx-quotes)
JSX attribute values can contain string literals, which are delimited with single or double quotes.
Unlike string literals in JavaScript, string literals within JSX attributes can’t contain escaped quotes. If you want to have e.g. a double quote within a JSX attribute value, you have to use single quotes as string delimiter.
Rule Details
This rule enforces the consistent use of either double or single quotes in JSX attributes.
Options
This rule has a string option:
-
"prefer-double"
(default) enforces the use of double quotes for all JSX attribute values that don't contain a double quote. -
"prefer-single"
enforces the use of single quotes for all JSX attribute values that don’t contain a single quote.
prefer-double
Examples of incorrect code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
Examples of correct code for this rule with the default "prefer-double"
option:
/*eslint jsx-quotes: ["error", "prefer-double"]*/
prefer-single
Examples of incorrect code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
Examples of correct code for this rule with the "prefer-single"
option:
/*eslint jsx-quotes: ["error", "prefer-single"]*/
When Not To Use It
You can turn this rule off if you don’t use JSX or if you aren’t concerned with a consistent usage of quotes within JSX attributes.
Related Rules
- [quotes](quotes.md) Source: http://eslint.org/docs/rules/
Form label must have ALL of the following types of associated control: nesting, id Open
<label className='bx--label'>{label}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
A form label must be associated with a control. Open
<label className='bx--label'>{label}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
A form label must be associated with a control. Open
<label className='file-upload-label' disabled>{input.value ? input.value : __('No File Chosen')}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
tabIndex
should only be declared on interactive elements. Open
<span className='file-button' tabIndex='0'>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Form label must have ALL of the following types of associated control: nesting, id Open
<label className='file-upload-label' disabled>{input.value ? input.value : __('No File Chosen')}</label>
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/