-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7fa0ac
commit bb3cc66
Showing
9 changed files
with
5,616 additions
and
2,793 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,25 @@ | ||
import header from "eslint-plugin-header"; | ||
import globals from "globals"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
// @ts-check | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default [ | ||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
files: ["**/*.ts"], | ||
ignores: [ | ||
"**/out", | ||
"**/poky", | ||
"**/.vscode-test", | ||
"integration-tests/project-folder", | ||
"client/server", | ||
"__mocks__/vscode.ts", | ||
"**/jest.config.js", | ||
"**/eslint.config.mjs", | ||
"**/*.js", | ||
"integration-tests/project-folder/**", | ||
"client/server/**", | ||
], | ||
}, | ||
...compat.extends( | ||
"standard-with-typescript", | ||
"plugin:deprecation/recommended" | ||
), | ||
{ | ||
plugins: { | ||
header, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
|
||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
|
||
rules: { | ||
"header/header": [ | ||
2, | ||
"block", | ||
[ | ||
" --------------------------------------------------------------------------------------------", | ||
{ | ||
pattern: " \\* Copyright \\(c\\) .*\\. All rights reserved\\.", | ||
template: | ||
" * Copyright (c) 2023 Savoir-faire Linux. All rights reserved.", | ||
}, | ||
" * Licensed under the MIT License. See License.txt in the project root for license information.", | ||
" * ------------------------------------------------------------------------------------------ ", | ||
], | ||
2, | ||
], | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-explicit-any": "off" | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.ts"], | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
|
||
ecmaVersion: 5, | ||
sourceType: "commonjs", | ||
}, | ||
}, | ||
]; | ||
sourceType: "module", | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.