Skip to content

Commit

Permalink
fix: relax adonis config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Dec 3, 2024
1 parent d493220 commit 813be94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions eslint/configs/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function node(): Linter.Config[] {
"node/no-exports-assign": "error",
"node/no-new-require": "error",
"node/no-path-concat": "error",
"node/prefer-global/buffer": ["error", "never"],
"node/prefer-global/process": ["error", "never"],
"node/prefer-global/buffer": ["error"],
"node/prefer-global/process": ["error"],
"node/process-exit-as-throw": "error",
},
},
Expand Down
11 changes: 2 additions & 9 deletions eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,13 @@ import { unicorn } from "./configs/unicorn";
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
const adonisConfig = [...configApp(), ...node()];

const nextjsConfig = [...react(), ...a11y()];
const nextjsConfig = [...react(), ...a11y(), ...unicorn(), ...imports()];

export const solvro = (...overrides: ConfigWithExtends[]) => {
const isAdonis = isPackageExists("@adonisjs/core");
const isNext = isPackageExists("next");

const configs = [
...typescript(),
...javascript(),
...jsdoc(),
...unicorn(),
...imports(),
...comments(),
];
const configs = [...typescript(), ...javascript(), ...jsdoc(), ...comments()];

const defaultOverrides = [
...ignores(),
Expand Down
1 change: 1 addition & 0 deletions prettier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default {
importOrder: ["^@assets/(.*)$", "<THIRD_PARTY_MODULES>", "^@/(.*)$", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderParserPlugins: ["typescript", "decorators-legacy"],
plugins: [
"prettier-plugin-packagejson",
"@trivago/prettier-plugin-sort-imports",
Expand Down

0 comments on commit 813be94

Please sign in to comment.