Skip to content

Commit

Permalink
build: clean legacy configuration (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Dec 11, 2023
1 parent f9316da commit 6ab7b0e
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 1,760 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

25 changes: 4 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@
"ignorePatterns": ["**/*.chromatic.stories.*"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
}
"ecmaVersion": 2020
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"files": ["*.js"],
"extends": ["prettier"],
"rules": {
"no-unused-vars": [
Expand All @@ -29,7 +26,7 @@
}
},
{
"files": ["*.ts", "*.tsx"],
"files": ["*.ts"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
Expand Down Expand Up @@ -124,21 +121,7 @@
"plugins": ["yaml"]
},
{
"files": ["*.tsx", "*.jsx"],
"extends": ["plugin:jsx-a11y/recommended"],
"plugins": ["jsx-a11y"],
"rules": {
"jsx-a11y/aria-role": 0,
"jsx-a11y/no-redundant-roles": [
"error",
{
"ul": ["list"]
}
]
}
},
{
"files": ["*.stories.tsx", "*.stories.ts"],
"files": ["*.stories.ts"],
"rules": {
"@typescript-eslint/naming-convention": "off"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- run: mkdir -p dist/storybook
- run: unzip storybook.zip -d dist/storybook
- name: Remove files with forbidden extensions
run: node ./ci/clean-storybook-files.cjs
run: node ./scripts/clean-storybook-files.cjs

- name: Create GitHub Deployment
id: tag-name
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Remove files with forbidden extensions
run: node ./ci/clean-storybook-files.cjs
run: node ./scripts/clean-storybook-files.cjs
- name: 'Container: Login to GitHub Container Repository'
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin
- name: 'Container: Build image'
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
run: STORYBOOK_COMPONENTS_VERSION="rev-$GITHUB_SHA" yarn build

- name: Remove files with forbidden extensions
run: node ./ci/clean-storybook-files.cjs
run: node ./scripts/clean-storybook-files.cjs
- name: 'Container: Login to GitHub Container Repository'
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin
- name: 'Container: Build image'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Remove files with forbidden extensions
run: node ./ci/clean-storybook-files.cjs
run: node ./scripts/clean-storybook-files.cjs
- name: 'Container: Login to GitHub Container Repository'
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin
- name: 'Container: Build image'
Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { StorybookConfig } from '@storybook/web-components-vite';
import { BuildOptions, UserConfig, mergeConfig } from 'vite';

const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(ts|tsx)'],
stories: ['../src/**/*.stories.ts'],
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y', '@storybook/addon-interactions'],
framework: {
name: '@storybook/web-components-vite',
Expand Down
121 changes: 0 additions & 121 deletions ci/inline-events.mts

This file was deleted.

Loading

0 comments on commit 6ab7b0e

Please sign in to comment.