|
1 |
| -import { dirname } from 'path' |
2 |
| -import { fileURLToPath } from 'url' |
3 |
| -import { FlatCompat } from '@eslint/eslintrc' |
| 1 | +import { FlatCompat } from "@eslint/eslintrc"; |
| 2 | +import { dirname } from "path"; |
| 3 | +import { fileURLToPath } from "url"; |
4 | 4 |
|
5 |
| -const __filename = fileURLToPath(import.meta.url) |
6 |
| -const __dirname = dirname(__filename) |
| 5 | +const __filename = fileURLToPath(import.meta.url); |
| 6 | +const __dirname = dirname(__filename); |
7 | 7 |
|
8 | 8 | const compat = new FlatCompat({
|
9 | 9 | baseDirectory: __dirname,
|
10 |
| -}) |
| 10 | +}); |
11 | 11 |
|
12 | 12 | const eslintConfig = [
|
13 |
| - ...compat.extends('next/core-web-vitals', 'next/typescript'), |
| 13 | + ...compat.extends("next/core-web-vitals", "next/typescript"), |
| 14 | + { |
| 15 | + ignores: ["src/app/(payload)/"], |
| 16 | + }, |
14 | 17 | {
|
15 | 18 | rules: {
|
16 |
| - '@typescript-eslint/ban-ts-comment': 'warn', |
17 |
| - '@typescript-eslint/no-empty-object-type': 'warn', |
18 |
| - '@typescript-eslint/no-explicit-any': 'warn', |
19 |
| - '@typescript-eslint/no-unused-vars': [ |
20 |
| - 'warn', |
| 19 | + "@typescript-eslint/ban-ts-comment": "warn", |
| 20 | + "@typescript-eslint/no-empty-object-type": "warn", |
| 21 | + "@typescript-eslint/no-explicit-any": "warn", |
| 22 | + "@typescript-eslint/no-unused-vars": [ |
| 23 | + "warn", |
21 | 24 | {
|
22 |
| - vars: 'all', |
23 |
| - args: 'after-used', |
| 25 | + vars: "all", |
| 26 | + args: "after-used", |
24 | 27 | ignoreRestSiblings: false,
|
25 |
| - argsIgnorePattern: '^_', |
26 |
| - varsIgnorePattern: '^_', |
27 |
| - destructuredArrayIgnorePattern: '^_', |
28 |
| - caughtErrorsIgnorePattern: '^(_|ignore)', |
| 28 | + argsIgnorePattern: "^_", |
| 29 | + varsIgnorePattern: "^_", |
| 30 | + destructuredArrayIgnorePattern: "^_", |
| 31 | + caughtErrorsIgnorePattern: "^(_|ignore)", |
29 | 32 | },
|
30 | 33 | ],
|
31 | 34 | },
|
32 | 35 | },
|
33 |
| -] |
| 36 | +]; |
34 | 37 |
|
35 |
| -export default eslintConfig |
| 38 | +export default eslintConfig; |
0 commit comments