Skip to content

Commit

Permalink
Feat es lint (#123)
Browse files Browse the repository at this point in the history
Fixes #66  - adds the ability to lint our project using eslint

## Setup & Run

- There are two new lint dev dependency packages: `eslint-config-next` &
`eslint-plugin-jsx-a11y` so be sure to install them by running `pnpm i`
- Type `npm run lint` to lint the project

---------

Co-authored-by: Shashi Lo <[email protected]>
  • Loading branch information
chris-nowicki and shashilo authored Apr 15, 2024
1 parent de67797 commit 6d084f2
Show file tree
Hide file tree
Showing 5 changed files with 1,172 additions and 307 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:jsx-a11y/recommended",
"next/core-web-vitals",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ next-env.d.ts
*storybook.log
/blob-report/
/playwright/.cache/
storybook-static/*
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test:watch": "jest --watchAll --passWithNoTests",
"storybook-docs": "storybook dev --docs",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"lint": "next lint --quiet"
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
Expand Down Expand Up @@ -46,8 +47,12 @@
"@types/node": "20.3.1",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.5",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"encoding": "^0.1.13",
"eslint-config-prettier": "^9.1.0",
"eslint-config-next": "14.1.4",
"eslint-plugin-jsx-a11y": "^6.8.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "3.2.5",
Expand Down
Loading

0 comments on commit 6d084f2

Please sign in to comment.