segmentio / eslint-config

Segment's ESLint configurations.
9 stars 6 forks source link

Add require as global to browser config #20

Closed dominicbarnes closed 9 years ago

dominicbarnes commented 9 years ago

With duo/component, we get require available to all client-side modules, so it's close enough to a global that this config change prevents errors about missing require.

I'd rather do this than adding env: { node: true }, since that also includes other non-browser globals like global and process.

/cc @ndhoule

dominicbarnes commented 9 years ago

Oh, looks like module and exports should be added as well. Let me do that first.