-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (35 loc) · 920 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
extraFileExtensions: ['.json', '.mjs']
},
plugins: ['@typescript-eslint', 'unused-imports', 'jsx-a11y'],
extends: [
'next',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
// JSX-A11y Configurations can be found at
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y
'plugin:jsx-a11y/recommended'
],
rules: {
// Nextjs rules omited for static rendering
// https://nextjs.org/docs/basic-features/eslint#eslint-plugin
// Turn these rules on for Next Fullstack
'@next/next/no-img-element': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-no-literals': 'error'
},
overrides: [
{
files: ['*.spec.*'],
rules: {
'react/jsx-no-literals': 'off'
}
}
]
}