mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore(deps): upgrade `typescript` * chore(ts): don't exclude test files in tsconfig * test: expect error when overriding `NODE_ENV` * chore: remove unused import * format * chore: use pnpm@7 in action * chore: fix eslint * chore: remove pnpm from engines * chore: fix configs/builds * fix: make eslint works * Update pnpm-lock.yaml * fix: build failure * fix: add react to paths * ignore upstash for now * add eslintignore, add a bunch of tsconfig.eslint.json * ignore mikro orm for now * Delete tsconfig.eslint.json * Update package.json * Update pnpm-lock.yaml * move eslint back to package.json * move eslintrc.js out Co-authored-by: Thang Vu <thvu@hey.com> Co-authored-by: Thang Vu <thang.vu@binance.com>
28 lines
728 B
JavaScript
28 lines
728 B
JavaScript
const path = require("path")
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: [path.resolve(__dirname, "./packages/**/tsconfig.eslint.json")],
|
|
},
|
|
extends: ["standard-with-typescript", "prettier"],
|
|
globals: {
|
|
localStorage: "readonly",
|
|
location: "readonly",
|
|
fetch: "readonly",
|
|
},
|
|
rules: {
|
|
camelcase: "off",
|
|
"@typescript-eslint/naming-convention": "off",
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
},
|
|
plugins: ["jest"],
|
|
env: {
|
|
"jest/globals": true,
|
|
},
|
|
ignorePatterns: [".eslintrc.js"],
|
|
}
|