Skip to content

Commit 81d5aeb

Browse files
authored
Revert "Revert "devops: switch to @tony.ganchev/eslint-plugin-header""
1 parent aa50e57 commit 81d5aeb

6 files changed

Lines changed: 30 additions & 18 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FlatCompat } from '@eslint/eslintrc';
33
import js from '@eslint/js';
44
import typescriptEslint from '@typescript-eslint/eslint-plugin';
55
import tsParser from '@typescript-eslint/parser';
6-
import pluginHeader from 'eslint-plugin-header';
6+
import header from '@tony.ganchev/eslint-plugin-header';
77
import _import from 'eslint-plugin-import';
88
import mocha from 'eslint-plugin-mocha';
99
import simpleImportSort from 'eslint-plugin-simple-import-sort';
@@ -12,8 +12,6 @@ import globals from 'globals';
1212
import path from 'node:path';
1313
import { fileURLToPath } from 'node:url';
1414

15-
pluginHeader.rules.header.meta.schema = false;
16-
1715
const __filename = fileURLToPath(import.meta.url);
1816
const __dirname = path.dirname(__filename);
1917
const compat = new FlatCompat({
@@ -44,7 +42,7 @@ export default [
4442
{
4543
plugins: {
4644
'@typescript-eslint': typescriptEslint,
47-
pluginHeader,
45+
header,
4846
mocha,
4947
tsdoc,
5048
'simple-import-sort': simpleImportSort,
@@ -161,8 +159,7 @@ export default [
161159
],
162160

163161
'jsx-quotes': 'error',
164-
// TODO https://github.com/Stuk/eslint-plugin-header/issues/57
165-
// 'header/header': [2, 'src/header.js'],
162+
'header/header': [2, 'src/header.js'],
166163
'no-mixed-spaces-and-tabs': 'off',
167164
'no-empty': 'off',
168165
'@typescript-eslint/no-unsafe-function-type': 'off',

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@statoscope/webpack-plugin": "^5.29.0",
5757
"@swc/core": "^1.15.18",
5858
"@swc/helpers": "^0.5.19",
59+
"@tony.ganchev/eslint-plugin-header": "^3.2.4",
5960
"@types/ace": "^0.0.52",
6061
"@types/fs-extra": "^11.0.4",
6162
"@types/karma": "^6.3.9",
@@ -83,7 +84,6 @@
8384
"esbuild": "^0.27.3",
8485
"eslint": "^9.39.2",
8586
"eslint-config-prettier": "^10.1.8",
86-
"eslint-plugin-header": "^3.1.1",
8787
"eslint-plugin-import": "^2.32.0",
8888
"eslint-plugin-mocha": "^11.2.0",
8989
"eslint-plugin-prettier": "^5.5.5",

test/tests/acceptance/esm.test.esm.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*!
2+
* Jodit Editor (https://xdsoft.net/jodit/)
3+
* Released under MIT see LICENSE.txt in the project root for license information.
4+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5+
*/
16
import 'base/build/esm/plugins/all.js';
27

38
import { Jodit } from 'base/build/esm/index.js';

tools/add-missing-translations.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env node
2+
/*!
3+
* Jodit Editor (https://xdsoft.net/jodit/)
4+
* Released under MIT see LICENSE.txt in the project root for license information.
5+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
6+
*/
27
/*!
38
* Script to add missing translation keys from Russian (ru.js) to other language files
49
* Usage: node add-missing-translations.js

tools/check-esm-build.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*!
2+
* Jodit Editor (https://xdsoft.net/jodit/)
3+
* Released under MIT see LICENSE.txt in the project root for license information.
4+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5+
*/
16
/**
27
* Check that all plugins are included in the ESM build
38
*/

0 commit comments

Comments
 (0)