mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 07:58:57 +02:00
♻️ Update eslint config (#1424)
This commit is contained in:
parent
01396b6129
commit
d55131c2ab
162 changed files with 337 additions and 266 deletions
11
packages/eslint-config/next.js
Normal file
11
packages/eslint-config/next.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const preset = require("./preset");
|
||||
|
||||
/** @return {import("eslint").Linter.Config} */
|
||||
module.exports = function (workspaceDirPath) {
|
||||
const baseConfig = preset(workspaceDirPath);
|
||||
|
||||
return {
|
||||
...baseConfig,
|
||||
extends: [...baseConfig.extends, "next"],
|
||||
};
|
||||
};
|
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
"name": "@rallly/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"main": "preset.js",
|
||||
"exports": {
|
||||
"./*": "./*.js"
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^6.6.0",
|
||||
|
|
|
@ -2,8 +2,15 @@
|
|||
module.exports = function (workspaceDirPath) {
|
||||
return {
|
||||
root: true,
|
||||
extends: ["next", "turbo"],
|
||||
plugins: ["simple-import-sort", "@typescript-eslint"],
|
||||
extends: ["turbo"],
|
||||
plugins: [
|
||||
"eslint-plugin-import",
|
||||
"simple-import-sort",
|
||||
"@typescript-eslint",
|
||||
],
|
||||
env: {
|
||||
es6: true,
|
||||
},
|
||||
ignorePatterns: ["dist/", "playwright-report/"],
|
||||
globals: {
|
||||
React: true,
|
||||
|
@ -32,6 +39,7 @@ module.exports = function (workspaceDirPath) {
|
|||
"import/no-duplicates": "error",
|
||||
"no-console": ["error", { allow: ["warn", "error", "info"] }],
|
||||
"no-unused-vars": "error",
|
||||
"@typescript-eslint/consistent-type-imports": "error",
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue