Skip to content

Commit

Permalink
Add prevent-license-key-leak eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Sep 23, 2024
1 parent b838db8 commit c731e3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
],
rules: {
'ckeditor5-rules/ckeditor-imports': 'error',
'ckeditor5-rules/prevent-license-key-leak': 'error',
'ckeditor5-rules/license-header': [ 'error', {
headerLines: [
'/**',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"coveralls": "^3.1.0",
"date-fns": "^2.30.0",
"eslint": "^7.19.0",
"eslint-config-ckeditor5": "^7.0.0",
"eslint-config-ckeditor5": "^7.1.0",
"estree-walker": "^3.0.3",
"fs-extra": "^11.1.1",
"glob": "^10.2.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-ui/tests/editorui/poweredby.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe( 'PoweredBy', () => {
const showErrorStub = sinon.stub( ClassicTestEditor.prototype, '_showLicenseError' );

const editor = await createEditor( element, {
licenseKey: 'foo.bar.baz'
licenseKey: '<YOUR_LICENSE_KEY>'
} );

expect( editor.ui.poweredBy._balloonView ).to.be.null;
Expand Down

0 comments on commit c731e3e

Please sign in to comment.