forked from skillrecordings/egghead-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
21 lines (21 loc) · 846 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
parserOptions: {ecmaVersion: 8},
ignorePatterns: ['node_modules/*', '.next/*', '.out/*', '!.prettierrc.js'], // We don't want to lint generated files nor node_modules, but we want to lint .prettierrc.js (ignored by default by eslint)
extends: ['react-app', 'react-app/jest'],
plugins: ['jsx-a11y', '@asbjorn/groq'],
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off', // We will use TypeScript's types for component props instead
'jsx-a11y/anchor-is-valid': 'off', // This rule is not compatible with Next.js's <Link /> components
},
parser: '@typescript-eslint/parser',
settings: {react: {version: 'detect'}},
}