mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-02-17 07:22:45 +08:00
29 lines
638 B
JavaScript
29 lines
638 B
JavaScript
![]() |
module.exports = {
|
||
|
env: {
|
||
|
browser: true,
|
||
|
es2021: true,
|
||
|
node: true,
|
||
|
jest: true,
|
||
|
},
|
||
|
extends: [
|
||
|
'eslint:recommended',
|
||
|
'plugin:react/recommended',
|
||
|
'plugin:@typescript-eslint/recommended',
|
||
|
],
|
||
|
parser: '@typescript-eslint/parser',
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: 'latest',
|
||
|
sourceType: 'module',
|
||
|
},
|
||
|
plugins: ['react', '@typescript-eslint', 'react-hooks'],
|
||
|
rules: {
|
||
|
'react-hooks/rules-of-hooks': 'error',
|
||
|
'react-hooks/exhaustive-deps': 'warn',
|
||
|
'react/react-in-jsx-scope': 'off',
|
||
|
'@typescript-eslint/no-inferrable-types': 'off',
|
||
|
},
|
||
|
}
|