Skip to content

Commit

Permalink
chore: remove eslint-plugin-orbit-components references
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Nov 6, 2024
1 parent 4626303 commit 9be1a37
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 53 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const CONFIGS = [
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:tailwindcss/recommended",
"plugin:orbit-components/internal",
];

module.exports = {
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
yarn tokens build
yarn tailwind-preset build
yarn components build
yarn workspace @kiwicom/eslint-plugin-orbit-components build
- name: Dry run
if: ${{ github.event.inputs.dryrun == 'true' }}
Expand Down
1 change: 0 additions & 1 deletion docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ module.exports = {
files: "**/__examples__/**/*.*",
rules: {
"import/no-useless-path-segments": ["error", { noUselessIndex: false }],
"orbit-components/unique-id": "off",
"react/no-unstable-nested-components": "off",
},
},
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@icons-pack/react-simple-icons": "^8.0.1",
"@jsdevtools/rehype-url-inspector": "^2.0.2",
"@kiwicom/babel-plugin-orbit-components": "*",
"@kiwicom/eslint-plugin-orbit-components": "*",
"@kiwicom/orbit-components": "*",
"@kiwicom/orbit-design-tokens": "*",
"@kiwicom/orbit-tailwind-preset": "*",
Expand Down

This file was deleted.

18 changes: 8 additions & 10 deletions docs/src/pages/mdx-examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,20 @@ It should only present information that could end up destroying previous progres

## Tables

| Package | Description |
| ------------------------------ | ---------------------------------------------------------- |
| orbit-components | All our React components along with API documentation. |
| orbit-design-tokens | All visual UI attributes available as tokens. |
| eslint-plugin-orbit-components | ESLint rules to enforce best practices for our components. |
| Package | Description |
| ------------------- | ------------------------------------------------------ |
| orbit-components | All our React components along with API documentation. |
| orbit-design-tokens | All visual UI attributes available as tokens. |

### Aligned columns

In addition to the default of left alignment, columns can also be right or center aligned.
Set alignment with colons in the header row.

| Option | Description |
| -----------------------------: | :--------------------------------------------------------: |
| orbit-components | All our React components along with API documentation. |
| orbit-design-tokens | All visual UI attributes available as tokens. |
| eslint-plugin-orbit-components | ESLint rules to enforce best practices for our components. |
| Option | Description |
| ------------------: | :----------------------------------------------------: |
| orbit-components | All our React components along with API documentation. |
| orbit-design-tokens | All visual UI attributes available as tokens. |

## Links

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-orbit-components": "*",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.2.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/orbit-components/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = {
{
files: "*.stories.*",
rules: {
"orbit-components/unique-id": "off",
"react/no-unstable-nested-components": "off",
// TODO: remove after migration to a new actions
"import/no-extraneous-dependencies": "off",
Expand All @@ -59,7 +58,6 @@ module.exports = {
{
files: ["src/**/*.test.ts?(x)", "src/test-utils.tsx"],
rules: {
"orbit-components/unique-id": "off",
"import/no-extraneous-dependencies": [
"error",
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import Text from "../Text";

import Accordion, { AccordionSection } from ".";

/* eslint-disable orbit-components/unique-id */

export default function AccordionVisualTest() {
return (
<div className="space-y-400">
Expand Down
1 change: 0 additions & 1 deletion packages/orbit-components/src/Layout/Layout.ct-story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export function LayoutStoryWizard() {
<Layout type="Booking">
<LayoutColumn>
<Fill>
{/* eslint-disable-next-line orbit-components/unique-id */}
<Wizard activeStep={3} completedSteps={3} id="wizard">
<WizardStep title="Search" />
<WizardStep title="Passenger details" />
Expand Down
1 change: 0 additions & 1 deletion packages/orbit-components/src/OrbitProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const getCssVarsForWL = (theme: typeof defaultTokens) =>
const OrbitProvider = ({ theme, children, useId }: Props) => {
return (
<RandomIdProvider useId={useId}>
{/* eslint-disable-next-line orbit-components/unique-id */}
<style id="orbit-theme-css-vars">
{tokensToCssVars({ tokens: getCssVarsForWL(theme.orbit), cssClass: ":root" })}
</style>
Expand Down
1 change: 0 additions & 1 deletion packages/orbit-components/src/Popover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const Popover = ({
{children}
</div>
{render &&
// eslint-disable-next-line orbit-components/unique-id
(renderInPortal ? <FloatingPortal id="popovers">{popover}</FloatingPortal> : popover)}
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ const TooltipPrimitive = ({
</TooltipWrapper>
{enabled &&
render &&
// eslint-disable-next-line orbit-components/unique-id
(renderInPortal ? <FloatingPortal id="tooltips">{tooltip}</FloatingPortal> : tooltip)}
</>
);
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"include": [
"packages/orbit-components/**/*",
"packages/orbit-design-tokens/**/*",
"packages/orbit-themer/**/*",
"packages/eslint-plugin-orbit-components/**/*"
"packages/orbit-themer/**/*"
],
"exclude": [
"**/scripts/**/*",
Expand Down
1 change: 0 additions & 1 deletion utils/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ exports.DEV_DEPENDENCIES = [
"**/tasks/**",
"docs/**",
"packages/*/.storybook/**",
"packages/eslint-plugin-orbit-components/**",
"packages/orbit-design-tokens/src/theo/**",
"packages/orbit-components/cypress.config.ts",
"packages/orbit-components/playwright-ct.config.ts",
Expand Down
18 changes: 1 addition & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d"
integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==

"@babel/helper-validator-identifier@^7.10.4", "@babel/helper-validator-identifier@^7.22.5", "@babel/helper-validator-identifier@^7.24.5":
"@babel/helper-validator-identifier@^7.22.5", "@babel/helper-validator-identifier@^7.24.5":
version "7.24.5"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz#918b1a7fa23056603506370089bd990d8720db62"
integrity sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==
Expand Down Expand Up @@ -2146,15 +2146,6 @@
debug "^4.3.1"
globals "^11.1.0"

"@babel/types@=7.12.10":
version "7.12.10"
resolved "https://registry.npmjs.org/@babel/types/-/types-7.12.10.tgz"
integrity sha512-sf6wboJV5mGyip2hIpDSKsr80RszPinEFjsHTalMxZAZkoQ2/2yQzxlcFN52SJqsyPfLtPmenL4g2KB3KJXPDw==
dependencies:
"@babel/helper-validator-identifier" "^7.10.4"
lodash "^4.17.19"
to-fast-properties "^2.0.0"

"@babel/types@^7.0.0", "@babel/types@^7.0.0-beta.49", "@babel/types@^7.12.7", "@babel/types@^7.15.4", "@babel/types@^7.16.7", "@babel/types@^7.16.8", "@babel/types@^7.20.0", "@babel/types@^7.20.7", "@babel/types@^7.21.4", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.24.0", "@babel/types@^7.24.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
version "7.24.5"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.5.tgz#7661930afc638a5383eb0c4aee59b74f38db84d7"
Expand Down Expand Up @@ -11803,13 +11794,6 @@ eslint-plugin-mdx@^1.17.0:
tslib "^2.3.1"
vfile "^4.2.1"

eslint-plugin-orbit-components@*:
version "0.6.10"
resolved "https://registry.npmjs.org/eslint-plugin-orbit-components/-/eslint-plugin-orbit-components-0.6.10.tgz"
integrity sha512-14wKnl/awCZZaFHv3sq3IPmF/9Zhc0M/myoQRIa+7ysRWeZP1frtIaI8U+nUbsXLa0MGU8vJrfV4Z5hDgVrpuA==
dependencies:
"@babel/types" "=7.12.10"

eslint-plugin-prettier@^4.2.1:
version "4.2.1"
resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz"
Expand Down

0 comments on commit 9be1a37

Please sign in to comment.