|
|
|
|
|
require('@rushstack/eslint-patch/modern-module-resolution') |
|
|
|
|
|
module.exports = { |
|
|
root: true, |
|
|
'extends': [ |
|
|
'eslint:recommended', |
|
|
'plugin:react-hooks/recommended', |
|
|
'plugin:react/recommended' |
|
|
], |
|
|
env: { |
|
|
browser: true, |
|
|
es2021: true, |
|
|
node: true |
|
|
}, |
|
|
globals: { |
|
|
|
|
|
window: 'readonly', |
|
|
document: 'readonly', |
|
|
localStorage: 'readonly', |
|
|
sessionStorage: 'readonly', |
|
|
console: 'readonly', |
|
|
setTimeout: 'readonly', |
|
|
clearTimeout: 'readonly', |
|
|
setInterval: 'readonly', |
|
|
clearInterval: 'readonly', |
|
|
URL: 'readonly', |
|
|
URLSearchParams: 'readonly', |
|
|
fetch: 'readonly', |
|
|
FormData: 'readonly', |
|
|
Blob: 'readonly', |
|
|
XMLHttpRequest: 'readonly', |
|
|
navigator: 'readonly', |
|
|
location: 'readonly', |
|
|
atob: 'readonly', |
|
|
btoa: 'readonly', |
|
|
Event: 'readonly', |
|
|
CustomEvent: 'readonly', |
|
|
MessageChannel: 'readonly', |
|
|
Promise: 'readonly', |
|
|
Symbol: 'readonly', |
|
|
Set: 'readonly', |
|
|
Map: 'readonly', |
|
|
WeakMap: 'readonly', |
|
|
WeakSet: 'readonly', |
|
|
Reflect: 'readonly', |
|
|
AbortController: 'readonly', |
|
|
ReadableStream: 'readonly', |
|
|
Uint8Array: 'readonly', |
|
|
TextEncoder: 'readonly', |
|
|
TextDecoder: 'readonly', |
|
|
Intl: 'readonly', |
|
|
MSApp: 'readonly', |
|
|
DOMException: 'readonly', |
|
|
globalThis: 'readonly', |
|
|
performance: 'readonly', |
|
|
queueMicrotask: 'readonly', |
|
|
setImmediate: 'readonly', |
|
|
MSApp: 'readonly', |
|
|
reportError: 'readonly', |
|
|
__VITE_SUPABASE_URL__: 'readonly', |
|
|
__VITE_SUPABASE_ANON_KEY__: 'readonly' |
|
|
}, |
|
|
ignorePatterns: ['dist', 'build', '.eslintrc.cjs'], |
|
|
parserOptions: { |
|
|
ecmaVersion: 'latest', |
|
|
sourceType: 'module', |
|
|
ecmaFeatures: { |
|
|
jsx: true |
|
|
} |
|
|
}, |
|
|
settings: { |
|
|
react: { |
|
|
version: '18.2' |
|
|
} |
|
|
}, |
|
|
plugins: ['react'], |
|
|
rules: { |
|
|
'react/react-in-jsx-scope': 'off', |
|
|
'react/prop-types': 'warn' |
|
|
} |
|
|
} |