Skip to content

Commit

Permalink
style: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Nov 8, 2024
1 parent f65c285 commit 83078e1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ env:
es2021: true
node: true
extends:
- love
# - love
- plugin:react/recommended
- plugin:react/jsx-runtime
- prettier
Expand All @@ -12,6 +12,5 @@ parserOptions:
sourceType: module
plugins:
- react
- prettier
rules:
'@typescript-eslint/explicit-function-return-type': 'off'
1 change: 0 additions & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ importOrder:
'^@/constants/(.*)$',
'^@/components/(.*)$',
'^@/(.*)$',
'^app/(.*)$',
'^@/assets/(.*)$',
'^[./]',
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start",
"predeploy": "npm run build",
"test": "vitest",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src/ app/",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src/",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"format:check": "prettier --check ."
Expand Down
21 changes: 17 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/manufacturers/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from '@/components/layout/grid.module.css';

export function generateStaticParams() {
return [{ id: '/manufacturers/955' }, { id: '956' }, { id: '957' }];
return [{ id: '955' }, { id: '956' }, { id: '957' }]; // TODO: fix hardcoded values
}

export default async function Manufacturer({
Expand Down
6 changes: 1 addition & 5 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import type { Config } from 'tailwindcss';

const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
colors: {
Expand Down

0 comments on commit 83078e1

Please sign in to comment.