Skip to content

Commit

Permalink
refactor: formatter and linter housekeeping
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <griko@nibras.co>
  • Loading branch information
grikomsn committed Jan 18, 2024
1 parent b7c96cd commit 2a84d51
Show file tree
Hide file tree
Showing 90 changed files with 4,299 additions and 8,105 deletions.
43 changes: 43 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check

/**
* @type {import("eslint").Linter.Config}
* @see https://eslint.org/docs/latest/use/configure/
*/
const eslintConfig = {
extends: [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:prettier/recommended",
],
plugins: ["simple-import-sort"],
rules: {
"@next/next/no-img-element": "off",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": "warn",
},
ignorePatterns: ["node_modules/", ".next/", "out/", "src/chains/*"],
overrides: [
{
files: ["*.ts", "*.tsx"],
extends: ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/ban-types": [
"error",
{
types: {
// un-ban a type that's banned by default
"{}": false,
},
extendDefaults: true,
},
],
},
},
],
root: true,
};
module.exports = eslintConfig;
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

Loading

0 comments on commit 2a84d51

Please sign in to comment.