Skip to content

Commit

Permalink
Merge pull request #208 from ckeditor/ck/11468
Browse files Browse the repository at this point in the history
Internal: Allowed the "license-header" ESLint rule. Fixed broken license headers across the project. See ckeditor/ckeditor5#11468.
  • Loading branch information
pomek committed Mar 15, 2022
2 parents 1e5cb43 + 546ca71 commit bfd555d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
* For licensing, see LICENSE.md.
*/

/* global module */

// Note: The ESLint configuration is mandatory for vue-cli.
module.exports = {
"extends": "ckeditor5"
'extends': 'ckeditor5',
'rules': {
'ckeditor5-rules/license-header': [ 'error', { headerLines: [
'/**',
' * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.',
' * For licensing, see LICENSE.md.',
' */'
] } ]
}
};
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"babel-loader": "^8.0.5",
"chai": "^4.2.0",
"eslint": "^7.0.0",
"eslint-config-ckeditor5": "^3.0.0",
"eslint-config-ckeditor5": "^4.0.0",
"istanbul-instrumenter-loader": "^3.0.0",
"karma": "^5.0.9",
"karma-chai": "^0.1.0",
Expand Down Expand Up @@ -62,7 +62,8 @@
"prerelease": "npm run build; if [ -n \"$(git status dist/ --porcelain)\" ]; then git add -u dist/ && git commit -m 'Internal: Build.'; fi",
"release": "node ./scripts/release.js",
"test": "node ./scripts/test.js",
"coverage": "node ./scripts/test.js --coverage"
"coverage": "node ./scripts/test.js --coverage",
"lint": "eslint --quiet \"**/*.js\""
},
"repository": {
"type": "git",
Expand All @@ -76,5 +77,8 @@
"bugs": {
"url": "https://github.com/ckeditor/ckeditor5-vue/issues"
},
"homepage": "https://github.com/ckeditor/ckeditor5-vue"
"homepage": "https://github.com/ckeditor/ckeditor5-vue",
"eslintIgnore": [
"dist/**"
]
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md.
*/

/* eslint-env node */
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2849,18 +2849,18 @@ escodegen@^1.9.0:
optionalDependencies:
source-map "~0.6.1"

eslint-config-ckeditor5@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/eslint-config-ckeditor5/-/eslint-config-ckeditor5-3.1.1.tgz#aeb289e858c7103aac09c9bd9347a60db62eedbc"
integrity sha512-fiV+pokuTd8wi9primorw06/XpXfhj7+LopRvuEdzqDumXpP0FUznllrnodogXE4+Mg9qX7tAs6YJeyArqyqQQ==
eslint-config-ckeditor5@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-ckeditor5/-/eslint-config-ckeditor5-4.0.0.tgz#6a4fc760525a0405532c4d6b095d8a17af3cba58"
integrity sha512-PDjWbo/PQ/gEvTGmNnEbLl63H+h0weQQkWV23jVCjvrr2Y5FyrVvQhizF5OqCDb5alSk1+RREUURZGhzMzy8LA==
dependencies:
eslint-plugin-ckeditor5-rules "^1.0.0"
eslint-plugin-ckeditor5-rules "^4.0.0"
eslint-plugin-mocha "^7.0.0"

eslint-plugin-ckeditor5-rules@^1.0.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-ckeditor5-rules/-/eslint-plugin-ckeditor5-rules-1.3.0.tgz#faf1fde859cf79e989f248e8a08e6955c317fdcd"
integrity sha512-7TjodWU2BRxbsCrhagRCn+V2Qh1UGmBnldG/jWL6HJgTPrsDYhqiS86aJUYsLR2FLEW6X39czXfI556qeMkCKQ==
eslint-plugin-ckeditor5-rules@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-ckeditor5-rules/-/eslint-plugin-ckeditor5-rules-4.0.0.tgz#79d1fd8235212fe5b534b404ecba9a0f35aa1f92"
integrity sha512-zjePsfFahvkytgyWZtWOwaWyhXMUalTTQwXQ4XbX0x000R/4YmZh64ikCSJuW8v6acfvQcbFtCdXn/8+dipYKg==

eslint-plugin-mocha@^7.0.0:
version "7.0.1"
Expand Down

0 comments on commit bfd555d

Please sign in to comment.