Skip to content

Conversation

@iowillhoit
Copy link
Contributor

@iowillhoit iowillhoit commented Mar 26, 2025

BREAKING CHANGES: default license is now Apache 2.0

We were instructed by legal to update our license to Apache 2.0

Companion PR for license headers: forcedotcom/eslint-config-salesforce-license#8
^ Related: license headers can be fix (by themselves) by running yarn eslint src test --fix --rule "header/header: [2]"

If someone does not want their license messed with, they will need to create a .sfdevrc file with a license set.
These should match the correct SPDX ID https://spdx.org/licenses/
For example:

{
  "license": "BSD-3-Clause"
}

@W-18119056@

BREAKING CHANGES: default license is now Apache 2.0

// If a custom license exists in the config file, don't add the fix-license script
if (!configFromFile.license) {
defaults.scripts['fix-license'] = 'eslint src test --fix --rule "header/header: [2]"';
Copy link
Contributor Author

@iowillhoit iowillhoit Mar 26, 2025

Choose a reason for hiding this comment

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

This is a convenience script for only fixing license updates. The year is now added dynamically, so starting Jan 1st every year we will need to fix these.

@iowillhoit iowillhoit merged commit c401002 into main Apr 10, 2025
20 checks passed
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.

3 participants