forked from Quorafind/Obsidian-Thino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (29 loc) · 844 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,
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint', 'prettier', 'react-hooks'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/no-unused-vars': [2, { args: 'all', argsIgnorePattern: '^_' }],
'@typescript-eslint/no-empty-interface': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-namespace': 'off',
'prettier/prettier': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
};