Skip to content

Commit

Permalink
fix(eslint): Lower case string type
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Dec 28, 2022
1 parent 138ea99 commit e3c8de1
Show file tree
Hide file tree
Showing 38 changed files with 203 additions and 203 deletions.
34 changes: 17 additions & 17 deletions src/components/abstractComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Constructor
*
* @param {String} name - Name of component
* @param {string} name - Name of component
* @param {Property[]} properties - Array of properties stored inside the component
* @param {AbstractComponent[]} components - Array of subcomponents stored inside this component
* @param {CalendarComponent|null} root - The root of this calendar document
Expand All @@ -49,7 +49,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Name of component
*
* @type {String}
* @type {string}
* @private
*/
this._name = uc(name)
Expand Down Expand Up @@ -93,7 +93,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Get the component's name
*
* @return {String}
* @return {string}
*/
get name() {
return this._name
Expand Down Expand Up @@ -149,7 +149,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Gets the first property that matches the given propertyName
*
* @param {String} propertyName Name of the property to get
* @param {string} propertyName Name of the property to get
* @return {Property|null}
*/
getFirstProperty(propertyName) {
Expand All @@ -163,7 +163,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Gets the first value of the first property matching that name
*
* @param {String} propertyName Name of the property to get first value of
* @param {string} propertyName Name of the property to get first value of
* @return {String|Number|AbstractValue|String[]|Number[]|AbstractValue[]|null}
*/
getFirstPropertyFirstValue(propertyName) {
Expand All @@ -179,7 +179,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
* update a property if it exists,
* create a new one if it doesn't
*
* @param {String} propertyName Name of the property to update / create
* @param {string} propertyName Name of the property to update / create
* @param {String|Number|AbstractValue|String[]|Number[]|AbstractValue[]|null} value The value to set
*/
updatePropertyWithValue(propertyName, value) {
Expand Down Expand Up @@ -219,7 +219,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Get all properties by name that match the given LANG parameter
*
* @param {String} propertyName The name of the property
* @param {string} propertyName The name of the property
* @param {String|null} lang The lang to query
* @private
*/
Expand All @@ -235,7 +235,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Get the first property by name that matches the given LANG parameter
*
* @param {String} propertyName The name of the property
* @param {string} propertyName The name of the property
* @param {String|null} lang The lang to query
* @return {Property|null}
* @private
Expand Down Expand Up @@ -278,7 +278,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Checks if this component has a property of the given name
*
* @param {String} propertyName The name of the property
* @param {string} propertyName The name of the property
* @return {boolean}
*/
hasProperty(propertyName) {
Expand Down Expand Up @@ -318,7 +318,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Removes all properties of a given name
*
* @param {String} propertyName The name of the property
* @param {string} propertyName The name of the property
* @return {boolean}
*/
deleteAllProperties(propertyName) {
Expand All @@ -329,7 +329,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Gets the first component of a given name
*
* @param {String} componentName The name of the component
* @param {string} componentName The name of the component
* @return {AbstractComponent|null}
*/
getFirstComponent(componentName) {
Expand Down Expand Up @@ -395,7 +395,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Checks if this component has a component of the given name
*
* @param {String} componentName The name of the component
* @param {string} componentName The name of the component
* @return {boolean}
*/
hasComponent(componentName) {
Expand Down Expand Up @@ -435,7 +435,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Removes all components of a given name
*
* @param {String} componentName The name of the component
* @param {string} componentName The name of the component
* @return {boolean}
*/
deleteAllComponents(componentName) {
Expand Down Expand Up @@ -557,7 +557,7 @@ export default class AbstractComponent extends observerTrait(lockableTrait(class
/**
* Gets a constructor for a give component name
*
* @param {String} componentName The name of the component
* @param {string} componentName The name of the component
* @return {AbstractComponent}
* @protected
*/
Expand Down Expand Up @@ -747,7 +747,7 @@ export function advertiseComponent(prototype, options) {
* Fill up the options object for advertiseProperty
*
* @param {Object|String} options The options object
* @param {String} options.name Advertised name of the property
* @param {string} options.name Advertised name of the property
* @param {String=} options.iCalendarName The iCalendar name of the property
* @param {String[]=} options.allowedValues A list of allowed values
* @param {String|Number=} options.defaultValue The default value if unset
Expand All @@ -774,7 +774,7 @@ function getDefaultOncePropConfig(options) {
* Fill up the options object for advertiseProperty
*
* @param {Object|String} options The options object
* @param {String} options.name Advertised name of property
* @param {string} options.name Advertised name of property
* @param {String=} options.iCalendarName The iCalendar name of the property
* @param {boolean=} options.customAddMethod Whether or not to use a custom add method
* @return {Object}
Expand All @@ -796,7 +796,7 @@ function getDefaultMultiplePropConfig(options) {
* Fill up the options object for advertiseComponent
*
* @param {Object|String} options Options destructuring object
* @param {String} options.name Advertised name of component
* @param {string} options.name Advertised name of component
* @param {String=} options.iCalendarName The iCalendar name of the component
* @param {boolean=} options.customAddMethod Whether or not to use a custom add method
* @return {Object}
Expand Down
8 changes: 4 additions & 4 deletions src/components/calendarComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class CalendarComponent extends AbstractComponent {
* @url https://tools.ietf.org/html/rfc5545#section-3.7.3
*
* @name CalendarComponent#productId
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
name: 'productId',
Expand All @@ -170,7 +170,7 @@ advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
* @url https://tools.ietf.org/html/rfc5545#section-3.7.4
*
* @name CalendarComponent#version
* @type {String}
* @type {string}
*/

advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
Expand All @@ -187,7 +187,7 @@ advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
* @url https://tools.ietf.org/html/rfc5545#section-3.7.1
*
* @name CalendarComponent#calendarScale
* @type {String}
* @type {string}
* @default "GREGORIAN"
*/
advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
Expand All @@ -203,7 +203,7 @@ advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
* @url https://tools.ietf.org/html/rfc5545#section-3.7.2
*
* @name CalendarComponent#method
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(CalendarComponent.prototype, {
name: 'method',
Expand Down
12 changes: 6 additions & 6 deletions src/components/nested/alarmComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default class AlarmComponent extends AbstractComponent {
/**
* Adds a new attendee based on their name and email-address
*
* @param {String} name - Name of the attendee
* @param {String} email - E-Mail address of the attendee
* @param {string} name - Name of the attendee
* @param {string} email - E-Mail address of the attendee
* @return {boolean}
*/
addAttendeeFromNameAndEMail(name, email) {
Expand Down Expand Up @@ -92,7 +92,7 @@ export default class AlarmComponent extends AbstractComponent {
* @url https://tools.ietf.org/html/rfc5545#section-3.8.6.1
*
* @name AlarmComponent#action
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'action')

Expand All @@ -103,7 +103,7 @@ advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'action')
* @url https://tools.ietf.org/html/rfc5545#section-3.8.1.5
*
* @name AlarmComponent#description
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'description')

Expand All @@ -115,7 +115,7 @@ advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'description')
* @url https://tools.ietf.org/html/rfc5545#section-3.8.1.12
*
* @name AlarmComponent#summary
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'summary')

Expand All @@ -126,7 +126,7 @@ advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'summary')
* @url https://tools.ietf.org/html/rfc5545#section-3.8.2.5
*
* @name AlarmComponent#duration
* @type {String}
* @type {string}
*/
advertiseSingleOccurrenceProperty(AlarmComponent.prototype, 'duration')

Expand Down
2 changes: 1 addition & 1 deletion src/components/nested/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { uc } from '../../helpers/stringHelper.js'
* This will only return a constructor for components,
* that can be nested inside other ones
*
* @param {String} compName - Component name to get default constructor for
* @param {string} compName - Component name to get default constructor for
* @return {AlarmComponent|AbstractComponent}
*/
export function getConstructorForComponentName(compName) {
Expand Down
Loading

0 comments on commit e3c8de1

Please sign in to comment.