mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-23 22:06:22 +02:00
♻️ Switch to app router (#922)
This commit is contained in:
parent
41f85279bb
commit
95feb9f01a
181 changed files with 2507 additions and 2494 deletions
18
packages/eslint-config/package.json
Normal file
18
packages/eslint-config/package.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "@rallly/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"main": "preset.js",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"eslint": "^8.52.0",
|
||||
"eslint-config-next": "^14.0.1",
|
||||
"eslint-config-turbo": "^1.10.16",
|
||||
"eslint-import-resolver-typescript": "^2.7.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-react": "^7.23.2",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
||||
"@typescript-eslint/parser": "^6.6.0"
|
||||
}
|
||||
}
|
37
packages/eslint-config/preset.js
Normal file
37
packages/eslint-config/preset.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
/** @return {import("eslint").Linter.Config} */
|
||||
module.exports = function (workspaceDirPath) {
|
||||
return {
|
||||
root: true,
|
||||
extends: ["next", "turbo"],
|
||||
plugins: ["simple-import-sort", "@typescript-eslint"],
|
||||
ignorePatterns: ["dist/", "playwright-report/"],
|
||||
globals: {
|
||||
React: true,
|
||||
JSX: true,
|
||||
},
|
||||
parserOptions: {
|
||||
tsconfigRootDir: workspaceDirPath,
|
||||
project: `${workspaceDirPath}/tsconfig.json`,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint"],
|
||||
extends: ["plugin:@typescript-eslint/recommended"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-unused-vars": "error",
|
||||
},
|
||||
},
|
||||
],
|
||||
rules: {
|
||||
"simple-import-sort/imports": "error",
|
||||
"simple-import-sort/exports": "error",
|
||||
"import/first": "error",
|
||||
"import/newline-after-import": "error",
|
||||
"import/no-duplicates": "error",
|
||||
"no-console": ["error", { allow: ["warn", "error", "info"] }],
|
||||
"no-unused-vars": "error",
|
||||
},
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue