/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
status
scripts/rollup/validate/eslintrc.umd.js
48 строк
1 KB
Emanuel Tesař
Add trusted types to react on client side (#16157)
16 сен 2019, 15:43
16 сен 2019, 15:43
b8d079b
Код
Авторство
О чём код?
'use strict'; module.exports = { env: { browser: true, }, globals: { // ES6 Map: true, Set: true, Symbol: true, Proxy: true, WeakMap: true, WeakSet: true, Uint16Array: true, // Vendor specific MSApp: true, __REACT_DEVTOOLS_GLOBAL_HOOK__: true, // UMD wrapper code // TODO: this is too permissive. // Ideally we should only allow these *inside* the UMD wrapper. exports: true, module: true, define: true, require: true, global: true, // Trusted Types trustedTypes: true, // Scheduler profiling SharedArrayBuffer: true, Int32Array: true, ArrayBuffer: true, }, parserOptions: { ecmaVersion: 5, sourceType: 'script', }, rules: { 'no-undef': 'error', 'no-shadow-restricted-names': 'error', }, // These plugins aren't used, but eslint complains if an eslint-ignore comment // references unused plugins. An alternate approach could be to strip // eslint-ignore comments as part of the build. plugins: ['jest', 'no-for-of-loops', 'react', 'react-internal'], };