42 lines
917 B
JavaScript
42 lines
917 B
JavaScript
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
ignores: ["node_modules/**", "dist/**", "**/dist/**"],
|
|
},
|
|
{
|
|
files: ["editors/vscode/src/**"],
|
|
languageOptions: {
|
|
sourceType: "commonjs",
|
|
globals: {
|
|
require: "readonly",
|
|
module: "writable",
|
|
setTimeout: "readonly",
|
|
clearTimeout: "readonly",
|
|
TextDecoder: "readonly",
|
|
console: "readonly",
|
|
},
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
},
|
|
},
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2023,
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
},
|
|
},
|
|
);
|