Skip to content

Commit b3753e8

Browse files
committed
Update eslint
1 parent eab5acd commit b3753e8

File tree

13 files changed

+1732
-956
lines changed

13 files changed

+1732
-956
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Please note we have a [code of conduct](https://github.com/reactdeveloperske/rea
2828
If you're ready to contribute and create your PR, it will help to set up a local environment so you can see your changes.
2929

3030
1. Set up your development environment
31-
3231
- install your favorite text editor/IDE
3332
- install [Nodejs](nodejs.org)
3433

eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import nextVitals from 'eslint-config-next/core-web-vitals';
2+
import { defineConfig, globalIgnores } from 'eslint/config';
3+
4+
const eslintConfig = defineConfig([
5+
...nextVitals,
6+
// Override default ignores of eslint-config-next.
7+
globalIgnores([
8+
// Default ignores of eslint-config-next:
9+
'.next/**',
10+
'out/**',
11+
'build/**',
12+
'next-env.d.ts',
13+
]),
14+
]);
15+
16+
export default eslintConfig;

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import './.next/types/routes.d.ts';
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

next.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@
33
const nextConfig = {
44
reactStrictMode: true,
55
pageExtensions: ['page.tsx', 'api.ts'],
6-
eslint: {
7-
dirs: ['src', 'e2e'],
8-
},
96
images: {
10-
domains: ['bit.ly', 'res.cloudinary.com'],
7+
remotePatterns: [
8+
{
9+
protocol: 'https',
10+
hostname: 'bit.ly',
11+
pathname: '/:path*',
12+
},
13+
{
14+
protocol: 'https',
15+
hostname: 'res.cloudinary.com',
16+
pathname: '/:path*',
17+
},
18+
],
1119
},
1220
};
1321

0 commit comments

Comments
 (0)