/* eslint-env node */ | |
require('@rushstack/eslint-patch/modern-module-resolution') | |
module.exports = { | |
root: true, | |
'extends': [ | |
'eslint:recommended', | |
'plugin:react-hooks/recommended', | |
'plugin:react/recommended' | |
], | |
ignorePatterns: ['dist', '.eslintrc.cjs'], | |
parserOptions: { | |
ecmaVersion: 'latest', | |
sourceType: 'module', | |
ecmaFeatures: { | |
jsx: true | |
} | |
}, | |
settings: { | |
react: { | |
version: '18.2' | |
} | |
}, | |
plugins: ['react'], | |
rules: { | |
'react/react-in-jsx-scope': 'off' | |
} | |
} |