Skip to content

Commit

Permalink
Set default prettier configs (aws-amplify#1341)
Browse files Browse the repository at this point in the history
* Set default prettier config

* Run prettier on all files
  • Loading branch information
reesscot authored Feb 16, 2022
1 parent 6c4e11a commit 6334200
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.next
.husky
.changeset
dist
.d.ts
20 changes: 18 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"trailingComma": "es5",
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"cursorOffset": -1,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"arrowParens": "always"
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,30 @@ import { ComponentClassNames } from '../shared/constants';
import { CountryCodeSelectProps, Primitive } from '../types';
import { SelectField } from '../SelectField';

const CountryCodeSelectPrimitive: Primitive<
CountryCodeSelectProps,
'select'
> = ({ className, ...props }, ref) => {
const countryCodeOptions = React.useMemo(
() =>
countryDialCodes.map((dialCode) => (
<option key={dialCode} value={dialCode}>
{dialCode}
</option>
)),
[]
);
const CountryCodeSelectPrimitive: Primitive<CountryCodeSelectProps, 'select'> =
({ className, ...props }, ref) => {
const countryCodeOptions = React.useMemo(
() =>
countryDialCodes.map((dialCode) => (
<option key={dialCode} value={dialCode}>
{dialCode}
</option>
)),
[]
);

return (
<SelectField
autoComplete="tel-country-code"
className={classNames(ComponentClassNames.CountryCodeSelect, className)}
labelHidden={true}
ref={ref}
{...props}
>
{countryCodeOptions}
</SelectField>
);
};
return (
<SelectField
autoComplete="tel-country-code"
className={classNames(ComponentClassNames.CountryCodeSelect, className)}
labelHidden={true}
ref={ref}
{...props}
>
{countryCodeOptions}
</SelectField>
);
};

export const CountryCodeSelect = React.forwardRef(CountryCodeSelectPrimitive);

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/i18n/dictionaries/authenticator/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const deDict = {
'Confirmation Code': 'Bestätigungs-Code',
'Create a new account': 'Einen neuen Account erstellen',
'Create account': 'Hier registrieren',
'Create Account': 'Account erstellen',
'Create Account': 'Account erstellen',
'Creating Account': 'Account wird erstellt',
Email: 'Email',
'Enter your code': 'Geben Sie Ihren Code ein',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/i18n/dictionaries/authenticator/en.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const enDict = {
'Account recovery requires verified contact information':
'Account recovery requires verified contact information':
'Account recovery requires verified contact information',
'Back to Sign In': 'Back to Sign In',
'Change Password': 'Change Password',
Expand Down
9 changes: 4 additions & 5 deletions packages/ui/src/i18n/dictionaries/authenticator/it.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const itDict = {
'Account recovery requires verified contact information':
'Il ripristino dell\'account richiede informazioni di contatto verificate',
"Il ripristino dell'account richiede informazioni di contatto verificate",
'An account with the given email already exists.':
'Questa email è già utilizzata da un\'altro account.',
"Questa email è già utilizzata da un'altro account.",
'Back to Sign In': 'Torna alla schermata di accesso',
'Change Password': 'Cambia la password',
Code: 'Codice',
Confirm: 'Conferma',
'Confirm a Code': 'Conferma un codice',
'Confirm Password': 'Conferma la password',
'Confirm Sign In': 'Conferma l\'accesso',
'Confirm Sign In': "Conferma l'accesso",
'Confirm Sign Up': 'Conferma registrazione',
'Confirmation Code': 'Codice di verifica',
'Create a new account': 'Crea un nuovo account',
Expand All @@ -23,8 +23,7 @@ export const itDict = {
'Have an account? ': 'Già registrato?',
'Incorrect username or password': 'Nome utente o password errati',
'Invalid password format': 'Formato della password non valido',
'Invalid phone number format':
'Formato del numero di telefono non valido',
'Invalid phone number format': 'Formato del numero di telefono non valido',
'Lost your code?': 'Codice smarrito?',
'New Password': 'Nuova password',
or: 'o',
Expand Down
5 changes: 2 additions & 3 deletions packages/vue/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ export type InterpretService = Interpreter<
}
>;

export const InterpretServiceInjectionKeyTypes: InjectionKey<InterpretService> = Symbol(
'interpret.service'
);
export const InterpretServiceInjectionKeyTypes: InjectionKey<InterpretService> =
Symbol('interpret.service');

0 comments on commit 6334200

Please sign in to comment.