Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lombardoc4 committed Dec 5, 2024
1 parent 8a73265 commit 1cefa67
Show file tree
Hide file tree
Showing 4 changed files with 1,513 additions and 1,577 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'prettier',
],
ignorePatterns: ['!.prettierrc.js'],
ignorePatterns: ['!**/.prettierrc.js'],
rules: {
'no-unused-vars': 'off',
'no-console': 'warn',
Expand Down
96 changes: 96 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import unusedImports from "eslint-plugin-unused-imports";
import cypress from "eslint-plugin-cypress";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["!**/.prettierrc.js"],
}, ...compat.extends(
"eslint:recommended",
"next",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"prettier",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
"simple-import-sort": simpleImportSort,
"unused-imports": unusedImports,
cypress,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
React: true,
JSX: true,
},
},

rules: {
"no-unused-vars": "off",
"no-console": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/no-unescaped-entities": "off",
"react/display-name": "off",

"react/jsx-curly-brace-presence": ["warn", {
props: "never",
children: "never",
}],

"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",

"unused-imports/no-unused-vars": ["warn", {
vars: "all",
varsIgnorePattern: "^_",
args: "after-used",
argsIgnorePattern: "^_",
}],

"simple-import-sort/exports": "warn",

"simple-import-sort/imports": ["warn", {
groups: [
["^@?\\w", "^\\u0000"],
["^.+\\.s?css$"],
["^@/lib", "^@/hooks"],
["^@/data"],
["^@/components", "^@/container"],
["^@/store"],
["^@/"],
[
"^\\./?$",
"^\\.(?!/?$)",
"^\\.\\./?$",
"^\\.\\.(?!/?$)",
"^\\.\\./\\.\\./?$",
"^\\.\\./\\.\\.(?!/?$)",
"^\\.\\./\\.\\./\\.\\./?$",
"^\\.\\./\\.\\./\\.\\.(?!/?$)",
],
["^@/types"],
["^"],
],
}],

"@typescript-eslint/no-namespace": ["error", {
allowDeclarations: true,
}],
},
}];
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"@eslint/eslintrc": "latest",
"@eslint/js": "latest",
"@release-it/conventional-changelog": "latest",
"@types/node": "latest",
"@types/react": "latest",
Expand All @@ -52,12 +54,13 @@
"@typescript-eslint/parser": "latest",
"autoprefixer": "latest",
"cypress": "latest",
"eslint": "8.56.0",
"eslint": "latest",
"eslint-config-next": "latest",
"eslint-config-prettier": "latest",
"eslint-plugin-cypress": "latest",
"eslint-plugin-simple-import-sort": "latest",
"eslint-plugin-unused-imports": "latest",
"globals": "latest",
"husky": "latest",
"lint-staged": "latest",
"next-sitemap": "latest",
Expand Down
Loading

0 comments on commit 1cefa67

Please sign in to comment.