Update prettier check (#7824)
* Update prettier check (this commit should fail the test) * Fix unprettified files
This commit is contained in:
Родитель
d3975785ce
Коммит
553b2d6053
|
@ -35,7 +35,7 @@ Here are some commands you can run:
|
|||
|
||||
| Command | Description |
|
||||
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| yarn amo | Start the dev server/proxy (for amo) using data from Docker. *This is not currently working. See [issue-7196][]*. |
|
||||
| yarn amo | Start the dev server/proxy (for amo) using data from Docker. _This is not currently working. See [issue-7196][]_. |
|
||||
| yarn amo:dev | Start the dev server/proxy (for amo) using data from the dev server (https://addons-dev.allizom.org/) |
|
||||
| yarn amo:dev-https | Same as `amo:dev` but with HTTPS, available at: https://example.com:3000/. [Read about setting up this environment](docs/moz-addon-manager.md#developing-with-a-local-https-server-recommended) |
|
||||
| yarn amo:no-proxy | Start the dev server without a proxy (for amo) using data from Docker |
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"stylelint": "stylelint --syntax scss **/*.scss",
|
||||
"lint": "npm run eslint && npm run stylelint",
|
||||
"prettier": "prettier --write '**'",
|
||||
"prettier-ci": "npm run prettier -- --list-different || (echo '\n\nThis failure means you did not run `yarn prettier-dev` before committing\n\n' && exit 1)",
|
||||
"prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `yarn prettier-dev` before committing\n\n' && exit 1)",
|
||||
"prettier-dev": "pretty-quick --branch master",
|
||||
"snyk": "snyk --org=add-ons-team",
|
||||
"snyk-ci": "npm run snyk test --severity-threshold=medium --file=package.json && npm run snyk monitor",
|
||||
|
|
|
@ -110,7 +110,8 @@ export class SearchFiltersBase extends React.Component {
|
|||
{ children: i18n.gettext('All'), value: NO_FILTER },
|
||||
{ children: i18n.gettext('Extension'), value: ADDON_TYPE_EXTENSION },
|
||||
{ children: i18n.gettext('Search Tool'), value: ADDON_TYPE_OPENSEARCH },
|
||||
{ children: i18n.gettext('Theme'),
|
||||
{
|
||||
children: i18n.gettext('Theme'),
|
||||
value: getAddonTypeFilter(ADDON_TYPE_THEME, {
|
||||
_config: this.props._config,
|
||||
}),
|
||||
|
|
|
@ -422,7 +422,7 @@ describe(__filename, () => {
|
|||
);
|
||||
expect(root.find('[htmlFor="displayName"]')).toHaveProp(
|
||||
'title',
|
||||
'This field is required'
|
||||
'This field is required',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
import * as React from 'react';
|
||||
import { TransitionGroup } from 'react-transition-group';
|
||||
|
||||
import AMInstallButton, { AMInstallButtonBase } from 'core/components/AMInstallButton';
|
||||
import AMInstallButton, {
|
||||
AMInstallButtonBase,
|
||||
} from 'core/components/AMInstallButton';
|
||||
import {
|
||||
ADDON_TYPE_OPENSEARCH,
|
||||
ADDON_TYPE_STATIC_THEME,
|
||||
|
|
Загрузка…
Ссылка в новой задаче