forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (35 loc) · 989 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (35 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig, globalIgnores } from 'eslint/config'
import eslintConfigNext from 'eslint-config-next'
import eslintConfigPrettier from 'eslint-config-prettier'
/** @type {import('eslint').Linter.Config[]} */
const eslintConfig = defineConfig([
...eslintConfigNext,
eslintConfigPrettier,
{
rules: {
'no-unused-vars': 'off',
// this rule is annoying on strings with quotes in them
'react/no-unescaped-entities': 'off',
'jsx-a11y/alt-text': 'off',
'@next/next/no-img-element': 'off',
'@next/next/no-page-custom-font': 'off',
'react/display-name': 'off',
'react/no-children-prop': 'off',
'react/jsx-max-props-per-line': [
0,
{
maximum: 10,
},
],
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
'.next/**',
'out/**',
'build/**',
'next-env.d.ts',
]),
])
export default eslintConfig