-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
27 lines (27 loc) · 962 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
module.exports = {
env: {
es6: true,
node: true,
browser: true
},
extends: ['plugin:@next/next/recommended', 'plugin:react/recommended', 'standard-with-typescript', 'standard-react', 'standard-jsx'],
plugins: ['react', 'react-hooks', '@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
ignorePatterns: ['.eslintrc.js', 'next.config.js', 'jest.config.js', 'out'],
rules: {
// React Hooks rules.
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
// Make TypeScript ESLint less strict.
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'multiline-ternary': 'off', // Temporary.
// Allow no-multi-str.
'no-multi-str': 'off'
}
}