Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2639 expose _requireCompletionOf for course / contentObject / articl… #2654

Closed
wants to merge 9 commits into from

Conversation

jamesrea83
Copy link
Member

…e / block to authoring tool

#2639

Copy link
Contributor

@tomgreenfield tomgreenfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need titles adding.

oliverfoster and others added 7 commits February 20, 2020 09:31
* Resolves #2377, adds ESLint as a dev dependency

Includes .eslintrc file defaulted to standardjs with some caveats, e.g. 4 spaces rather than 2, semicolons allowed, etc.  (See 'rules' for details.)

Some common common globals (Backbone, underscore) have been added but there are bound to be more required.

* Added .eslintignore file

* Removed JSCS and JSHint

* Added 'prettier'

This should go some way to relieving coding style issues.

* Switched to 2 space indentation, consistent with v5 branch

Also changed line width from 80 characters.

* Removed 'prettier'

After some evaluation, I think this is too opinionated for our codebase.

* Added 'npm run lint' command

* Changes from manual lint fix

* Correct .eslintignore

All .js files in /src/core/libraries are now being ignored.

* More manual fixes

Also allowing ES6 code in /grunt folder.

* Added enforcement of semi-colons to ESLint rules

* Reverted formatting on ternary operators

* Added operator-linebreak to .eslintrc

This preserves existing ternary operators.

Also, minor fixes.

* Cleared final two linting errors

Also removed .prettierrc.json, as this was not required.
@oliverfoster
Copy link
Member

@jamesrea83 conflicts ^

# Conflicts:
#	src/core/schema/block.model.schema

Resolved
@jamesrea83 jamesrea83 closed this Apr 2, 2020
@jamesrea83 jamesrea83 deleted the issue/2639 branch April 2, 2020 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants