mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
34 lines
621 B
JavaScript
34 lines
621 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
},
|
|
globals: {
|
|
// ES6
|
|
Map: true,
|
|
Set: true,
|
|
Symbol: true,
|
|
Proxy: true,
|
|
WeakMap: 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.
|
|
module: true,
|
|
define: true,
|
|
require: true,
|
|
global: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 5,
|
|
sourceType: 'script',
|
|
},
|
|
rules: {
|
|
'no-undef': 'error',
|
|
'no-shadow-restricted-names': 'error',
|
|
},
|
|
};
|