Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
next.config.js
tailwind.config.js
postcss.config.js
.next/*
netlify/*
node_modules/*
out/*
public/*
11 changes: 0 additions & 11 deletions .eslintrc.json

This file was deleted.

45 changes: 45 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
env:
browser: true
es2022: true
extends:
- plugin:react/recommended
- airbnb
- next/core-web-vitals
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
sourceType: module
plugins:
- react
- '@typescript-eslint'
rules:
semi: [error, never]
arrow-body-style: off
import/prefer-default-export: off
max-len: off
no-unused-vars: off
'@typescript-eslint/no-unused-vars': error
no-undef: off
no-plusplus: [error, { allowForLoopAfterthoughts: true }]
default-case: off
no-case-declarations: off
import/extensions: [
error,
ignorePackages,
{
ts: never,
tsx: never,
}
]
jsx-quotes: [error, prefer-single]
react/jsx-props-no-spreading: off
react/jsx-filename-extension: [error, { extensions: ['.tsx'] }]
react/function-component-definition: [error, { namedComponents: arrow-function }]
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: [
warn, {
additionalHooks: (useRecoilCallback|useRecoilTransaction_UNSTABLE) # https://recoiljs.org/docs/introduction/installation/#eslint
}
]
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const nextConfig = withPWA({
disable: process.env.NODE_ENV === 'development',
},
eslint: {
dirs: ['src'],
// Ignore eslint checks during `next build` run on CI, because it's checked on a separate step before
ignoreDuringBuilds: process.env.NEXT_CI_BUILD === 'true',
},
Expand Down
Loading