forked from rdunk/sanity-plugin-table
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
29 lines (29 loc) · 817 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
module.exports = {
root: true,
extends: [
'eslint:recommended',
'react-app',
'plugin:react/recommended',
'prettier',
],
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
ignorePatterns: require('./tsconfig.json').exclude,
rules: {
'prefer-const': 'warn',
'no-console': 'warn',
'no-debugger': 'warn',
'no-constant-condition': ['error', { checkLoops: false }],
'require-await': 'off',
'@typescript-eslint/require-await': 'warn',
'no-duplicate-imports': 'off',
'@typescript-eslint/no-duplicate-imports': ['warn'],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'react/display-name': 'off',
'import/no-anonymous-default-export': 'off',
},
};