Skip to content

Commit

Permalink
Merge pull request #101 from chanzuckerberg/ah-updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
ahuth authored Sep 23, 2024
2 parents 25e7a45 + ed2b72a commit e6d919f
Show file tree
Hide file tree
Showing 11 changed files with 3,589 additions and 5,653 deletions.
12 changes: 6 additions & 6 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@storybook/addon-a11y": "^8.2.2",
"@storybook/addon-essentials": "^8.2.2",
"@storybook/addon-webpack5-compiler-swc": "^1.0.4",
"@storybook/react": "^8.2.2",
"@storybook/react-webpack5": "^8.2.2",
"storybook": "^8.2.2"
"@storybook/addon-a11y": "^8.3.2",
"@storybook/addon-essentials": "^8.3.2",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/react": "^8.3.2",
"@storybook/react-webpack5": "^8.3.2",
"storybook": "^8.3.2"
}
}
2 changes: 0 additions & 2 deletions demo/src/advanced.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

export default {
title: 'advanced',
component: 'button',
Expand Down
2 changes: 0 additions & 2 deletions demo/src/autoTitles.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

export default {
component: 'button',
};
Expand Down
2 changes: 0 additions & 2 deletions demo/src/simple.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

export default {
title: 'simple',
component: 'button',
Expand Down
55 changes: 0 additions & 55 deletions eslint.config.js

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import js from '@eslint/js';
import vitest from '@vitest/eslint-plugin';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import react from 'eslint-plugin-react';
import globals from 'globals';
import typescriptEslint from 'typescript-eslint';

/** @type {import("eslint").Linter.Config[]} */
export default [
{
ignores: ['**/storybook-static/', '**/build/'],
},
js.configs.recommended,
...typescriptEslint.configs.recommended,
prettierRecommended,
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
'no-prototype-builtins': 'off',
},
},
{
files: ['**/*.js'],
rules: {
'@typescript-eslint/no-require-imports': 'off',
},
},
{
files: ['**/*.test.*'],
...vitest.configs.recommended,
},
{
files: ['demo/**/*.{js,jsx,ts,tsx}'],
...react.configs.flat.recommended,
...react.configs.flat['jsx-runtime'],
settings: {
react: {
version: 'detect',
},
},
},
];
Loading

0 comments on commit e6d919f

Please sign in to comment.