YesPlayMusic/.eslintrc.js

28 lines
590 B
JavaScript
Raw Normal View History

2022-03-13 14:40:38 +08:00
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
2023-01-07 14:39:03 +08:00
'plugin:react-hooks/recommended',
2022-03-13 14:40:38 +08:00
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'react-hooks'],
rules: {
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
},
}