Skip to content

Commit

Permalink
style: change indent from tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
niebag committed Apr 23, 2024
1 parent d1d44be commit c204997
Show file tree
Hide file tree
Showing 49 changed files with 884 additions and 884 deletions.
64 changes: 32 additions & 32 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
/** @type {import("eslint").Linter.Config} */
const config = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: true
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@next/next/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:storybook/recommended'
],
rules: {
// These opinionated rules are enabled in stylistic-type-checked above.
// Feel free to reconfigure them to your own preference.
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
parser: '@typescript-eslint/parser',
parserOptions: {
project: true
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@next/next/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:storybook/recommended'
],
rules: {
// These opinionated rules are enabled in stylistic-type-checked above.
// Feel free to reconfigure them to your own preference.
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',

'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
fixStyle: 'inline-type-imports'
}
],
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: { attributes: false }
}
]
}
'@typescript-eslint/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
fixStyle: 'inline-type-imports'
}
],
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: { attributes: false }
}
]
}
};

module.exports = config;
70 changes: 35 additions & 35 deletions .storybook/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@
* @see https://tailwindcss.com/docs/responsive-design
*/
export const TAILWIND_VIEWPORTS = {
sm: {
name: 'Small (sm)',
styles: {
width: '640px',
height: '100%'
}
},
md: {
name: 'Medium (md)',
styles: {
width: '768px',
height: '100%'
}
},
lg: {
name: 'Large (lg)',
styles: {
width: '1024px',
height: '100%'
}
},
xl: {
name: 'Extra Large (xl)',
styles: {
width: '1280px',
height: '100%'
}
},
'2xl': {
name: '2X Large (2xl)',
styles: {
width: '1536px',
height: '100%'
}
}
sm: {
name: 'Small (sm)',
styles: {
width: '640px',
height: '100%'
}
},
md: {
name: 'Medium (md)',
styles: {
width: '768px',
height: '100%'
}
},
lg: {
name: 'Large (lg)',
styles: {
width: '1024px',
height: '100%'
}
},
xl: {
name: 'Extra Large (xl)',
styles: {
width: '1280px',
height: '100%'
}
},
'2xl': {
name: '2X Large (2xl)',
styles: {
width: '1536px',
height: '100%'
}
}
} as const;
36 changes: 18 additions & 18 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import type { StorybookConfig } from '@storybook/nextjs';

const config: StorybookConfig = {
stories: ['../src/components/**/*.stories.@(ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'storybook-addon-pseudo-states'
],
framework: {
name: '@storybook/nextjs',
options: {}
},
docs: {
autodocs: 'tag',
defaultName: 'Documentation'
},
staticDirs: ['../public']
stories: ['../src/components/**/*.stories.@(ts|tsx)'],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'storybook-addon-pseudo-states'
],
framework: {
name: '@storybook/nextjs',
options: {}
},
docs: {
autodocs: 'tag',
defaultName: 'Documentation'
},
staticDirs: ['../public']
};
export default config;
10 changes: 5 additions & 5 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet" />
<style>
body {
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
28 changes: 14 additions & 14 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import '~/styles/tailwind.css';
import { TAILWIND_VIEWPORTS } from './constants';

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i
}
},
docs: {
toc: true
},
viewport: {
viewports: TAILWIND_VIEWPORTS
}
}
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i
}
},
docs: {
toc: true
},
viewport: {
viewports: TAILWIND_VIEWPORTS
}
}
};

export default preview;
14 changes: 7 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"recommendations": [
"ms-playwright.playwright",
"bradlc.vscode-tailwindcss",
"yoavbls.pretty-ts-errors",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"recommendations": [
"ms-playwright.playwright",
"bradlc.vscode-tailwindcss",
"yoavbls.pretty-ts-errors",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 4
}
}
4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('@commitlint/types').UserConfig} */
const config = {
// @commitlint/config-conventional enforces Conventional Commits (https://www.conventionalcommits.org/en/v1.0.0/).
extends: ['@commitlint/config-conventional']
// @commitlint/config-conventional enforces Conventional Commits (https://www.conventionalcommits.org/en/v1.0.0/).
extends: ['@commitlint/config-conventional']
};

export default config;
Loading

0 comments on commit c204997

Please sign in to comment.