Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
chore: lint typescript and jest codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
peterleiva committed Jan 29, 2022
1 parent eeda205 commit 8930f81
Show file tree
Hide file tree
Showing 4 changed files with 353 additions and 9,940 deletions.
27 changes: 27 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
coverage

# build folders
/.next/
/out/

# production
/build
tmp

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vercel
.vercel
24 changes: 23 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jsx-a11y"],

"rules": {
"max-len": ["warn", { "tabWidth": 2 }]
},

"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"plugins": ["jsx-a11y"]

"overrides": [
{
"files": ["test/**/*", "**/__+(tests|mocks|snapshots)__/**/*"],
"env": {
"jest/globals": true
},

"plugins": ["jest"],

"extends": ["plugin:jest/recommended"]
}
]
}
Loading

0 comments on commit 8930f81

Please sign in to comment.