Skip to content

Commit

Permalink
build(deps): bump the next group across 1 directory with 2 updates (#…
Browse files Browse the repository at this point in the history
…1797)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <[email protected]>
  • Loading branch information
dependabot[bot] and deepakprabhakara authored Oct 24, 2024
1 parent a99b497 commit 80ca3e5
Show file tree
Hide file tree
Showing 17 changed files with 682 additions and 713 deletions.
57 changes: 0 additions & 57 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ check-locale.js
find-dupe-locale.js
node_modules
.next
out
out
eslint.config.cjs
1 change: 1 addition & 0 deletions components/account/UploadAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const UploadAvatar = ({ user }: { user: Partial<User> }) => {
/>
</div>
{image && (
// eslint-disable-next-line @next/next/no-img-element
<img
src={image}
alt={user.name}
Expand Down
69 changes: 69 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
const i18Next = require("eslint-plugin-i18next");
const globals = require("globals");
const tsParser = require("@typescript-eslint/parser");
const js = require("@eslint/js");

const {
FlatCompat,
} = require("@eslint/eslintrc");

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [{
ignores: [
".next",
"**/node_modules",
"eslint.config.cjs"
],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"next/core-web-vitals",
"plugin:i18next/recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
i18next: i18Next,
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
ecmaVersion: 13,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
}
}, {
files: ["**/*.js"],

rules: {
"@typescript-eslint/no-require-imports": "off",
},
}, {
files: ["**/seed.ts"],

rules: {
"@typescript-eslint/no-require-imports": "off",
},
}, {
files: [
"components/defaultLanding/**/*.tsx",
"components/emailTemplates/**/*.tsx",
"pages/index.tsx",
],

rules: {
"i18next/no-literal-string": "off",
},
}];
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
// jest.config.js
const nextJest = require('next/jest');

Expand Down
1 change: 0 additions & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');

module.exports = {
Expand Down
Loading

0 comments on commit 80ca3e5

Please sign in to comment.