Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* global module */

// Note: The ESLint configuration is mandatory for vue-cli.
module.exports = {
'extends': [
'plugin:vue/vue3-recommended',
'ckeditor5'
],
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
'parser': 'vue-eslint-parser',
'parserOptions': {
'parser': '@typescript-eslint/parser',
'sourceType': 'module'
},
'rules': {
'ckeditor5-rules/license-header': [ 'error', { headerLines: [
'/**',
' * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.',
' * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options',
' */'
] } ],
'ckeditor5-rules/require-file-extensions-in-imports': [
'error',
{
extensions: [ '.ts', '.js', '.json' ]
}
],
'ckeditor5-rules/prevent-license-key-leak': 'error',
'vue/multi-word-component-names': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [ 'error' ]
},
'overrides': [
{
'files': [
'**/*.vue'
],
'rules': {
'ckeditor5-rules/license-header': 'off'
}
}
]
};
94 changes: 0 additions & 94 deletions eslint.config.js

This file was deleted.

20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
"ckeditor5": "^44.3.0",
"ckeditor5-premium-features": "^44.3.0",
"coveralls": "^3.1.1",
"eslint": "^9.26.0",
"eslint-config-ckeditor5": "^10.0.0-alpha.0",
"eslint-plugin-ckeditor5-rules": "^10.0.0-alpha.0",
"eslint-plugin-vue": "^10.1.0",
"globals": "^16.1.0",
"eslint": "^7.32.0",
"eslint-config-ckeditor5": "^7.1.0",
"eslint-plugin-vue": "^9.9.0",
"husky": "^8.0.2",
"lint-staged": "^10.2.11",
"listr2": "^6.5.0",
Expand All @@ -65,7 +63,7 @@
"vite": "^5.3.1",
"vitest": "^2.1.9",
"vue": "^3.4.30",
"vue-eslint-parser": "^10.1.3",
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "^2.1.6",
"webdriverio": "^9.12.7"
},
Expand All @@ -76,15 +74,15 @@
"ws": "^8"
},
"engines": {
"node": ">=22.0.0"
"node": ">=20.0.0"
},
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build && vue-tsc --emitDeclarationOnly",
"test": "vitest run --coverage",
"test:watch": "vitest --ui --watch",
"test:check:types": "tsc --noEmit -p ./tests/tsconfig.json",
"lint": "eslint",
"lint": "eslint \"{demos,src,tests}/**/*.{ts,vue}\"",
"postinstall": "node ./scripts/postinstall.js",
"changelog": "node ./scripts/changelog.js",
"release:prepare-packages": "node ./scripts/preparepackages.js",
Expand All @@ -106,8 +104,12 @@
"url": "https://github.com/ckeditor/ckeditor5-vue/issues"
},
"homepage": "https://github.com/ckeditor/ckeditor5-vue",
"eslintIgnore": [
"coverage/**",
"dist/**"
],
"lint-staged": {
"**/*": [
"**/*.{js,ts,vue}": [
"eslint --quiet"
]
}
Expand Down
2 changes: 2 additions & 0 deletions scripts/bump-year.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

/*

Usage:
Expand Down
2 changes: 2 additions & 0 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import parseArguments from './utils/parsearguments.js';

/**
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/is-project-ready-to-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import { createRequire } from 'module';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';

Expand Down
2 changes: 2 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import { fileURLToPath } from 'url';
import { join, dirname } from 'path';
import { existsSync } from 'fs';
Expand Down
8 changes: 6 additions & 2 deletions scripts/preparepackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import { createRequire } from 'module';
import { Listr } from 'listr2';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import * as devUtils from '@ckeditor/ckeditor5-dev-utils';
import parseArguments from './utils/parsearguments.js';
import getListrOptions from './utils/getlistroptions.js';
import { preparePackageJson } from './utils/preparepackagejson.js';

const require = createRequire( import.meta.url );

const latestVersion = releaseTools.getLastFromChangelog();
const versionChangelog = releaseTools.getChangesForVersion( latestVersion );
Expand Down Expand Up @@ -69,7 +73,7 @@ const tasks = new Listr( [
task: () => {
return releaseTools.prepareRepository( {
outputDirectory: 'release',
rootPackageJson: preparePackageJson()
rootPackageJson: require( '../package.json' )
} );
}
},
Expand Down
2 changes: 2 additions & 0 deletions scripts/publishpackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import { Listr } from 'listr2';
import * as releaseTools from '@ckeditor/ckeditor5-dev-release-tools';
import parseArguments from './utils/parsearguments.js';
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils/getlistroptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

/**
* @param {ReleaseOptions} cliArguments
* @returns {Object}
Expand Down
2 changes: 2 additions & 0 deletions scripts/utils/parsearguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env node */

import minimist from 'minimist';

/**
Expand Down
14 changes: 0 additions & 14 deletions scripts/utils/preparepackagejson.js

This file was deleted.

1 change: 1 addition & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

/* eslint-env browser */
import * as Vue from 'vue';
import Ckeditor from './ckeditor.vue';

Expand Down
2 changes: 1 addition & 1 deletion tests/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ declare module '*.vue' {
const Component: DefineComponent<object, object, any>;

export default Component;
}
}
2 changes: 2 additions & 0 deletions vitest-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
window.CKEDITOR_GLOBAL_LICENSE_KEY = 'GPL';
Loading
Loading