Skip to content
Open
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
2 changes: 1 addition & 1 deletion configs/base.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
jsx: true
}
},
plugins: ['@typescript-eslint', 'header', 'import', 'no-null', 'deprecation', 'jest'],
plugins: ['@typescript-eslint', '@tony.ganchev/header', 'import', 'no-null', 'deprecation', 'jest'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
Expand Down
2 changes: 1 addition & 1 deletion configs/errors.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = {
}
],
// eslint-plugin-header
'header/header': [
'@tony.ganchev/header/header': [
2,
'block',
[
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"devDependencies": {
"@testing-library/react": "^11.2.7",
"@tony.ganchev/eslint-plugin-header": "^3.3.0",
"@types/node": "^20.14.8",
"@types/react": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
Expand All @@ -47,7 +48,6 @@
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-no-null": "^1.0.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable */
Copy link
Author

Choose a reason for hiding this comment

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

eslint-disable needs to be first since it needs to silence errors on line 1 - eslint-plugin-header reported the errors on the wrong line.

/******************************************************************************
* Generated from the Langium AST — DO NOT EDIT MANUALLY!
* Run: yarn --cwd packages/server generate:transfer-model
******************************************************************************/

/* eslint-disable */

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export type Reference<T> = string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable @tony.ganchev/header/header */
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation and EclipseSource. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
// eslint-disable-next-line header/header
import { NormalizedTextDocuments } from 'langium/lsp';
import { basename } from 'path';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/scripts/generate-transfer-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ function generate(): void {
const out: string[] = [];

// Header
out.push('/* eslint-disable */');
out.push('/******************************************************************************');
out.push(' * Generated from the Langium AST — DO NOT EDIT MANUALLY!');
out.push(' * Run: yarn --cwd packages/server generate:transfer-model');
out.push(' ******************************************************************************/');
out.push('');
out.push('/* eslint-disable */');
out.push('');
// Base types (inlined — no external dependency)
out.push('// eslint-disable-next-line @typescript-eslint/no-unused-vars');
Expand Down
19 changes: 6 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1706,14 +1706,7 @@
resolved "https://registry.yarnpkg.com/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz#3081dadbc3460661b751e7591d7faea5df39dd29"
integrity sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==

"@isaacs/brace-expansion@^5.0.0":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz#0ef5a92d91f2fff2a37646ce54da9e5f599f6eff"
integrity sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==
dependencies:
"@isaacs/balanced-match" "^4.0.1"

"@isaacs/brace-expansion@^5.0.1":
"@isaacs/brace-expansion@^5.0.0", "@isaacs/brace-expansion@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz#0ef5a92d91f2fff2a37646ce54da9e5f599f6eff"
integrity sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==
Expand Down Expand Up @@ -3731,6 +3724,11 @@
tslib "^2.6.2"
valid-filename "^2.0.1"

"@tony.ganchev/eslint-plugin-header@^3.3.0":
version "3.3.0"
resolved "https://registry.yarnpkg.com/@tony.ganchev/eslint-plugin-header/-/eslint-plugin-header-3.3.0.tgz#723ce34b15d8f19f822fdee23ead299c4339b2d8"
integrity sha512-yWP5n7GXWU2NdOJuQtGSKiRm4i+YwqSjNqHMCOscnzHiv9rI7PIap7DiHz4E4ajWa0MdQICxnwKrk5isvZFcjw==

"@tootallnate/once@1", "@tootallnate/once@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
Expand Down Expand Up @@ -8179,11 +8177,6 @@ eslint-plugin-deprecation@^1.3.3:
tslib "^2.3.1"
tsutils "^3.21.0"

eslint-plugin-header@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz#6ce512432d57675265fac47292b50d1eff11acd6"
integrity sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==

eslint-plugin-import@^2.26.0:
version "2.32.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz#602b55faa6e4caeaa5e970c198b5c00a37708980"
Expand Down