Skip to content

Turn on strict mode for our modules #4217

@justinbmeyer

Description

@justinbmeyer

Most of CanJS should be running in strict mode. Exceptions are modules like can-assign where the behavior would change.

To turn on strict mode:

"use strict";

// other js

Steps:

  1. Learn how to make code-mods from kevin. code-mod should not re-add strict mode.
  2. Use greenkeeper to make PRs
  3. How to decide which files the code-mod should run on. Should it run on tests? (Maybe not b/c we could have canjs/canjs run tests in strict if we wanted).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions