Skip to content

Commit

Permalink
chore: move prettier and eslint configs under package.json (#7145)
Browse files Browse the repository at this point in the history
  • Loading branch information
SauravMaheshkar authored and balazsorban44 committed Apr 6, 2023
1 parent 75a59fb commit c8ef94b
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 167 deletions.
70 changes: 0 additions & 70 deletions .eslintignore

This file was deleted.

75 changes: 0 additions & 75 deletions .eslintrc.js

This file was deleted.

22 changes: 0 additions & 22 deletions .prettierrc.js

This file was deleted.

139 changes: 139 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,144 @@
"patchedDependencies": {
"@balazsorban/[email protected]": "patches/@[email protected]"
}
},
"eslintIgnore": [
".eslintrc.js",
".cache-loader",
".DS_Store",
".pnpm-debug.log",
".turbo",
".vscode/generated*",
"/_work",
"/actions-runner",
"node_modules",
"patches",
"pnpm-lock.yaml",
".github/actions/issue-validator/index.mjs",
"*.cjs",
"*.js",
"*.d.ts",
"*.d.ts.map",
".svelte-kit",
".next",
".nuxt",
".docusaurus",
"build",
"docs/docs/reference/core",
"docs/docs/reference/sveltekit",
"static",
"coverage",
"dist",
"packages/core/src/providers/oauth-types.ts",
"packages/core/src/lib/pages/styles.ts",
"packages/frameworks-sveltekit/package",
"packages/frameworks-sveltekit/vite.config.{js,ts}.timestamp-*",
"packages/next-auth/src/providers/oauth-types.ts",
"packages/next-auth/css/index.css",
".branches",
"db.sqlite",
"dev.db",
"dynamodblocal-bin",
"firebase-debug.log",
"firestore-debug.log",
"migrations",
"test.schema.gql",
"apps/example-sveltekit",
"apps",
"packages/**/*test*"
],
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"prettier"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./packages/**/tsconfig.json", "./apps/**/tsconfig.json"]
},
"settings": { "react": { "version": "18" } },
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"standard-with-typescript",
"prettier"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/method-signature-style": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off"
}
},
{
"files": ["*.test.ts", "*.test.js"],
"extends": ["plugin:jest/recommended"],
"env": { "jest": true }
},
{
"files": ["docs/**"],
"plugins": ["@docusaurus"],
"extends": ["plugin:@docusaurus/recommended"]
},
{
"files": ["packages/{core,sveltekit}/*.ts"],
"plugins": ["jsdoc"],
"extends": ["plugin:jsdoc/recommended"],
"rules": {
"jsdoc/require-param": "off",
"jsdoc/require-returns": "off",
"jsdoc/require-jsdoc": [
"warn",
{ "publicOnly": true, "enableFixer": false }
],
"jsdoc/no-multi-asterisks": ["warn", { "allowWhitespace": true }],
"jsdoc/tag-lines": "off"
}
},
{
"files": ["packages/frameworks-sveltekit"],
"plugins": ["svelte3"],
"overrides": [{ "files": ["*.svelte"], "processor": "svelte3/svelte3" }],
"parserOptions": { "sourceType": "module", "ecmaVersion": 2020 },
"env": { "browser": true, "es2017": true, "node": true }
}
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": { "jsx": true }
},
"root": true
},
"prettier": {
"semi": false,
"singleQuote": false,
"overrides": [
{
"files": [
"apps/dev/nextjs/pages/api/auth/[...nextauth].ts",
"docs/{sidebars,docusaurus.config}.js"
],
"options": { "printWidth": 150 }
},
{
"files": ["**/*package.json"],
"options": {
"trailingComma": "none"
}
}
]
}
}

0 comments on commit c8ef94b

Please sign in to comment.