Skip to content

Commit

Permalink
chore: lint all project with eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
Minozzzi committed Oct 31, 2024
1 parent c07c910 commit 62ebd70
Show file tree
Hide file tree
Showing 327 changed files with 8,766 additions and 11,869 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
"extends": ["@commitlint/config-conventional"]
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
charset = utf-8
indent_style = tab
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
Expand Down
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

132 changes: 0 additions & 132 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint:staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm type:check
pnpm build
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"semi": false,
"singleQuote": true,
"endOfLine": "auto",
"trailingComma": "es5",
"tabWidth": 2
"semi": false,
"singleQuote": true,
"endOfLine": "auto",
"trailingComma": "es5",
"tabWidth": 2
}
7 changes: 4 additions & 3 deletions .storybook/decorators/withRouter.decorator.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react'

import { MemoryRouter } from 'react-router-dom'

export const withRouter = (Story) => (
<MemoryRouter>
<Story />
</MemoryRouter>
<MemoryRouter>
<Story />
</MemoryRouter>
)
43 changes: 21 additions & 22 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
module.exports = {
stories: [
'../**/*.stories.mdx',
'../**/*.stories.@(js|jsx|ts|tsx)',
'../**/stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-themes',
'@storybook/themes',
],
framework: {
name: '@storybook/react-vite',
options: {},
},
features: {
storyStoreV7: true,
},
docs: {
autodocs: true,
},
stories: [
'../**/*.stories.mdx',
'../**/*.stories.@(js|jsx|ts|tsx)',
'../**/stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-themes',
],
framework: {
name: '@storybook/react-vite',
options: {},
},
features: {
storyStoreV7: true,
},
docs: {
autodocs: true,
},
}
10 changes: 5 additions & 5 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap"
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700&display=swap"
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<script>
window.global = window
window.global = window
</script>
36 changes: 18 additions & 18 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ import '../src/styles/globals.css'
import { withRouter } from './decorators'

export const parameters = {
backgrounds: {
default: 'transparent',
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
backgrounds: {
default: 'transparent',
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}

export const decorators = [
withRouter,
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
}),
withRouter,
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
}),
]
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"tailwindCSS.experimental.classRegex": [
"clsx\\(`([^`]*)`\\)",
"clsx`([^`]*)`",
"cva\\(`([^`]*)`\\)",
"cva`([^`]*)`"
]
"tailwindCSS.experimental.classRegex": [
"clsx\\(`([^`]*)`\\)",
"clsx`([^`]*)`",
"cva\\(`([^`]*)`\\)",
"cva`([^`]*)`"
]
}
30 changes: 15 additions & 15 deletions components.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/presentation/components",
"utils": "@/main/utils"
}
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/presentation/components",
"utils": "@/main/utils"
}
}
Loading

0 comments on commit 62ebd70

Please sign in to comment.