Skip to content

Commit e6c3266

Browse files
lint files correctly
1 parent 1dc78c1 commit e6c3266

22 files changed

+140
-79
lines changed
Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
const js = require("@eslint/js");
2-
const tseslint = require("typescript-eslint");
3-
const headerPlugin = require("eslint-plugin-header");
4-
const licenseHeaderPlugin = require("eslint-plugin-license-header");
5-
const unusedImportsPlugin = require("eslint-plugin-unused-imports");
6-
const importPlugin = require("eslint-plugin-import");
1+
/*
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5+
* License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
10+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
14+
import js from "@eslint/js";
15+
import headerPlugin from "eslint-plugin-header";
16+
import importPlugin from "eslint-plugin-import";
17+
import licenseHeaderPlugin from "eslint-plugin-license-header";
18+
import unusedImportsPlugin from "eslint-plugin-unused-imports";
19+
import * as tseslint from "typescript-eslint";
720

821
const currentYear = new Date().getFullYear();
922

10-
module.exports = [
23+
export default [
1124
{
1225
ignores: ["**/*.d.ts", "**/*.js", "src/ipc/**"],
1326
},

package-lock.json

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@
10701070
"package": "npx vsce package",
10711071
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
10721072
"publish": "npx vsce publish",
1073-
"lint": "eslint 'src/**' 'test/suite/**' --fix",
1073+
"lint": "eslint $(git ls-files '*.ts' '*.q' '*.css') --fix --no-warn-ignored",
10741074
"preui-test-cmd": "tsc --outdir out-test -p ./test",
10751075
"ui-test-cmd": "extest setup-and-run --code_version 1.99.3 --code_settings ./test/ui/fixtures/settings.json --extensions_dir ./.test-extensions --storage ./.test-folder -m ./test/ui/fixtures/mocha.json",
10761076
"preui-test": "rimraf out-test .test-extensions",
@@ -1087,6 +1087,8 @@
10871087
"@types/glob": "^8.1.0",
10881088
"@types/graceful-fs": "^4.1.9",
10891089
"@types/istanbul-lib-coverage": "^2.0.6",
1090+
"@types/istanbul-lib-instrument": "^1.7.7",
1091+
"@types/istanbul-lib-source-maps": "^4.0.4",
10901092
"@types/istanbul-reports": "^3.0.4",
10911093
"@types/mocha": "^10.0.10",
10921094
"@types/node": "^22.10.1",

server/src/linter/checks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/linter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/linter/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/parser/checks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/parser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/parser/keywords.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at

server/src/parser/language.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998-2023 Kx Systems Inc.
2+
* Copyright (c) 1998-2025 Kx Systems Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
55
* License. You may obtain a copy of the License at
@@ -11,6 +11,11 @@
1111
* specific language governing permissions and limitations under the License.
1212
*/
1313

14+
import { TokenType } from "chevrotain";
15+
import { writeFileSync } from "fs";
16+
import { resolve } from "path";
17+
18+
import { Control, Identifier, Keyword, Reserved } from "./keywords";
1419
import {
1520
BinaryLiteral,
1621
ByteLiteral,
@@ -23,7 +28,14 @@ import {
2328
TimeLiteral,
2429
TimeStampLiteral,
2530
} from "./literals";
26-
import { Control, Identifier, Keyword, Reserved } from "./keywords";
31+
import {
32+
CommentEnd,
33+
ExitCommentBegin,
34+
CommentBegin,
35+
StringEnd,
36+
StringBegin,
37+
TestBegin,
38+
} from "./ranges";
2739
import {
2840
Colon,
2941
Command,
@@ -39,17 +51,6 @@ import {
3951
TestLambdaBlock,
4052
Cond,
4153
} from "./tokens";
42-
import { TokenType } from "chevrotain";
43-
import { writeFileSync } from "fs";
44-
import { resolve } from "path";
45-
import {
46-
CommentEnd,
47-
ExitCommentBegin,
48-
CommentBegin,
49-
StringEnd,
50-
StringBegin,
51-
TestBegin,
52-
} from "./ranges";
5354

5455
const includes = [
5556
{

0 commit comments

Comments
 (0)