Skip to content

Commit

Permalink
disables @typescript-eslint/consistent-type-definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuurcio committed Jan 18, 2024
1 parent 293ba07 commit 6247d54
Show file tree
Hide file tree
Showing 147 changed files with 1,740 additions and 1,904 deletions.
35 changes: 18 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,30 @@ module.exports = {
},
settings: {
react: {
version: "detect",
version: 'detect',
},
},
extends: [
"standard-with-typescript",
"eslint:recommended",
"plugin:react/recommended",
"prettier",
'standard-with-typescript',
'eslint:recommended',
'plugin:react/recommended',
'prettier',
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
extraFileExtensions: [".md", ".css"],
ecmaVersion: 'latest',
sourceType: 'module',
extraFileExtensions: ['.md', '.css'],
},
plugins: ["react", "react-hooks"],
ignorePatterns: [".eslintrc.js"],
plugins: ['react', 'react-hooks'],
ignorePatterns: ['.eslintrc.js'],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react/react-in-jsx-scope": "off",
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'react/react-in-jsx-scope': 'off',
},
globals: {
"React": true,
"expect": true
}
};
React: true,
expect: true,
},
}
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
version: 2
updates:
- commit-message:
prefix: "chore"
directory: "/"
labels: ["dependabot"]
prefix: 'chore'
directory: '/'
labels: ['dependabot']
open-pull-requests-limit: 5
package-ecosystem: "npm"
package-ecosystem: 'npm'
schedule:
interval: "weekly"
day: "monday"
time: "15:00"
target-branch: "chore/dependabot"
interval: 'weekly'
day: 'monday'
time: '15:00'
target-branch: 'chore/dependabot'
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Dependabot Automerge"
name: 'Dependabot Automerge'

on: workflow_dispatch

jobs:
automerge-dependabot:
name: "Automerge Dependabot PR"
name: 'Automerge Dependabot PR'
uses: mParticle/mparticle-workflows/.github/workflows/dependabot-automerge.yml@stable
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-branch-rebase.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Dependabot Branch Rebase"
name: 'Dependabot Branch Rebase'

on:
push:
Expand All @@ -8,6 +8,6 @@ on:

jobs:
rebase-branch:
name: "Rebase Development onto Dependabot Branch"
name: 'Rebase Development onto Dependabot Branch'
uses: mParticle/mparticle-workflows/.github/workflows/dependabot-rebase-main.yml@stable
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
# release is done from main branch.
confirm-public-repo-main-branch:
name: "Confirm release is run from public/main branch"
name: 'Confirm release is run from public/main branch'
uses: mParticle/mparticle-workflows/.github/workflows/sdk-release-repo-branch-check.yml@main

release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
name: Security Lint Checks
uses: mparticle/mparticle-workflows/.github/workflows/security-checks.yml@stable
with:
base_branch: "main"
base_branch: 'main'
4 changes: 2 additions & 2 deletions .github/workflows/tokens-to-css.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Design Tokens to CSS
on:
push:
branches-ignore:
- "main"
- "development"
- 'main'
- 'development'
workflow_dispatch:

jobs:
Expand Down
14 changes: 7 additions & 7 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Config } from "jest";
import type { Config } from 'jest'

export { baseConfig };

type StorybookTestConfig = { testRunnerOptions: { play: boolean } };
type StorybookTestConfig = { testRunnerOptions: { play: boolean } }

const baseConfig: Config & StorybookTestConfig = {
testEnvironment: "jsdom",
testEnvironment: 'jsdom',

testRunner: "storybook-test-runner",
testRunner: 'storybook-test-runner',
testRunnerOptions: {
play: true,
},
};
}

export { baseConfig }
42 changes: 21 additions & 21 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
module.exports = {
branches: ["main"],
tagFormat: "v${version}",
repositoryUrl: "https://github.com/mParticle/aquarium",
branches: ['main'],
tagFormat: 'v${version}',
repositoryUrl: 'https://github.com/mParticle/aquarium',
plugins: [
[
"@semantic-release/commit-analyzer",
'@semantic-release/commit-analyzer',
{
preset: "angular",
preset: 'angular',
releaseRules: [
{ type: "feat", release: "minor" },
{ type: "ci", release: "patch" },
{ type: "fix", release: "patch" },
{ type: "docs", release: "patch" },
{ type: "test", release: "patch" },
{ type: "refactor", release: "patch" },
{ type: "style", release: "patch" },
{ type: "build", release: "patch" },
{ type: "chore", release: "patch" },
{ type: "revert", release: "patch" },
{ type: 'feat', release: 'minor' },
{ type: 'ci', release: 'patch' },
{ type: 'fix', release: 'patch' },
{ type: 'docs', release: 'patch' },
{ type: 'test', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'build', release: 'patch' },
{ type: 'chore', release: 'patch' },
{ type: 'revert', release: 'patch' },
],
},
],
[
"@semantic-release/release-notes-generator",
'@semantic-release/release-notes-generator',
{
preset: "angular",
preset: 'angular',
},
],
["@semantic-release/npm"],
['@semantic-release/npm'],
[
"@semantic-release/github",
'@semantic-release/github',
{
assets: ["dist/**"],
assets: ['dist/**'],
},
],
],
};
}
14 changes: 7 additions & 7 deletions src/components/data-display/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from '@storybook/react'

import { Avatar } from "src/components/data-display/Avatar/Avatar";
import { Avatar } from 'src/components/data-display/Avatar/Avatar'

const meta: Meta<typeof Avatar> = {
title: "Aquarium/Data Display/Avatar",
title: 'Aquarium/Data Display/Avatar',
component: Avatar,

args: {},
};
export default meta;
}
export default meta

type Story = StoryObj<typeof Avatar>;
type Story = StoryObj<typeof Avatar>

export const Primary: Story = {};
export const Primary: Story = {}
6 changes: 3 additions & 3 deletions src/components/data-display/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Avatar as AntAvatar, type AvatarProps as AntAvatarProps } from "antd";
import { Avatar as AntAvatar, type AvatarProps as AntAvatarProps } from 'antd'

export interface IAvatarProps extends AntAvatarProps {}

Expand All @@ -7,5 +7,5 @@ export const Avatar = (props: IAvatarProps) => {
<>
<AntAvatar {...props} />
</>
);
};
)
}
14 changes: 7 additions & 7 deletions src/components/data-display/Badge/Badge.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from '@storybook/react'

import { Badge } from "src/components/data-display/Badge/Badge";
import { Badge } from 'src/components/data-display/Badge/Badge'

const meta: Meta<typeof Badge> = {
title: "Aquarium/Data Display/Badge",
title: 'Aquarium/Data Display/Badge',
component: Badge,

args: {},
};
export default meta;
}
export default meta

type Story = StoryObj<typeof Badge>;
type Story = StoryObj<typeof Badge>

export const Primary: Story = {};
export const Primary: Story = {}
6 changes: 3 additions & 3 deletions src/components/data-display/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Badge as AntBadge, type BadgeProps as AntBadgeProps } from "antd";
import { Badge as AntBadge, type BadgeProps as AntBadgeProps } from 'antd'

export interface IBadgeProps extends AntBadgeProps {}

Expand All @@ -7,5 +7,5 @@ export const Badge = (props: IBadgeProps) => {
<>
<AntBadge {...props} />
</>
);
};
)
}
14 changes: 7 additions & 7 deletions src/components/data-display/Calendar/Calendar.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from '@storybook/react'

import { Calendar } from "src/components/data-display/Calendar/Calendar";
import { Calendar } from 'src/components/data-display/Calendar/Calendar'

const meta: Meta<typeof Calendar> = {
title: "Aquarium/Data Display/Calendar",
title: 'Aquarium/Data Display/Calendar',
component: Calendar,

args: {},
};
export default meta;
}
export default meta

type Story = StoryObj<typeof Calendar>;
type Story = StoryObj<typeof Calendar>

export const Primary: Story = {};
export const Primary: Story = {}
9 changes: 3 additions & 6 deletions src/components/data-display/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
Calendar as AntCalendar,
type CalendarProps as AntCalendarProps,
} from "antd";
import { Calendar as AntCalendar, type CalendarProps as AntCalendarProps } from 'antd'

export interface ICalendarProps extends AntCalendarProps {}

Expand All @@ -10,5 +7,5 @@ export const Calendar = (props: ICalendarProps) => {
<>
<AntCalendar {...props} />
</>
);
};
)
}
14 changes: 7 additions & 7 deletions src/components/data-display/Card/Card.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from '@storybook/react'

import { Card } from "src/components/data-display/Card/Card";
import { Card } from 'src/components/data-display/Card/Card'

const meta: Meta<typeof Card> = {
title: "Aquarium/Data Display/Card",
title: 'Aquarium/Data Display/Card',
component: Card,

args: {},
};
export default meta;
}
export default meta

type Story = StoryObj<typeof Card>;
type Story = StoryObj<typeof Card>

export const Primary: Story = {};
export const Primary: Story = {}
6 changes: 3 additions & 3 deletions src/components/data-display/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card as AntCard, type CardProps as AntCardProps } from "antd";
import { Card as AntCard, type CardProps as AntCardProps } from 'antd'

export interface ICardProps extends AntCardProps {}

Expand All @@ -7,5 +7,5 @@ export const Card = (props: ICardProps) => {
<>
<AntCard {...props} />
</>
);
};
)
}
14 changes: 7 additions & 7 deletions src/components/data-display/Carousel/Carousel.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from '@storybook/react'

import { Carousel } from "src/components/data-display/Carousel/Carousel";
import { Carousel } from 'src/components/data-display/Carousel/Carousel'

const meta: Meta<typeof Carousel> = {
title: "Aquarium/Data Display/Carousel",
title: 'Aquarium/Data Display/Carousel',
component: Carousel,

args: {},
};
export default meta;
}
export default meta

type Story = StoryObj<typeof Carousel>;
type Story = StoryObj<typeof Carousel>

export const Primary: Story = {};
export const Primary: Story = {}
9 changes: 3 additions & 6 deletions src/components/data-display/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
Carousel as AntCarousel,
type CarouselProps as AntCarouselProps,
} from "antd";
import { Carousel as AntCarousel, type CarouselProps as AntCarouselProps } from 'antd'

export interface ICarouselProps extends AntCarouselProps {}

Expand All @@ -10,5 +7,5 @@ export const Carousel = (props: ICarouselProps) => {
<>
<AntCarousel {...props} />
</>
);
};
)
}
Loading

0 comments on commit 6247d54

Please sign in to comment.