Since Drupal is using eslint to check for javascript coding standards, we need a package.json so contributors can run npm install to install all required tools.

For the moment the last version of eslint cannot be used with the eslintrc file in core.

Comments

attiks created an issue. See original summary.

nod_’s picture

I don't have a problem with latest version of eslint.

attiks’s picture

You're right was because of contributed modules and themes.

Adding a package.json still makes sense?

nod_’s picture

Yeah, but people will start asking why our dependencies like jquery and all are not in our package.json file. And I wouldn't have a good answer for that.

attiks’s picture

Status: Active » Postponed

True, they should be in it, but I'm fine with postponing this.

Cottser’s picture

Title: Add package.json to core directory for npm » Add package.json to core directory for npm dev dependencies
Version: 8.0.x-dev » 8.1.x-dev
Status: Postponed » Active

Happy to see this issue :)

I'd like to propose that we start with adding a package.json to core for our dev dependencies only.

droplet’s picture

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.