Skip to content
Merged
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 .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '22'
- name: Build Packages
shell: bash
run: yarn
238 changes: 130 additions & 108 deletions configs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,111 +1,133 @@
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": [
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-no-null",
"@typescript-eslint",
"header"
],
"rules": {
"@typescript-eslint/indent": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-shadow": [
"warn",
{
"hoist": "all"
const globals = require('globals');
const tsParser = require('@typescript-eslint/parser');
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const noNullPlugin = require('eslint-plugin-no-null');
const headerPlugin = require('eslint-plugin-header');
const prettierConfig = require('eslint-config-prettier');

const headerPluginWithSchema = {
...headerPlugin,
rules: {
...headerPlugin.rules,
header: {
...headerPlugin.rules.header,
meta: {
...headerPlugin.rules.header.meta,
schema: false
}
],
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/type-annotation-spacing": "warn",
"header/header": ["error", "block", [{"pattern": "[\n\r]+ \\* Copyright \\([cC]\\) \\d{4}(-\\d{4})? .*[\n\r]+"}]],
"brace-style": [
"warn",
"1tbs",
{ "allowSingleLine": true }
],
"comma-dangle": ["warn", {
"arrays": "only-multiline",
"objects": "only-multiline",
}],
"constructor-super": "error",
"curly": "off",
"eol-last": "warn",
"eqeqeq": [
"warn",
"smart"
],
"guard-for-in": "off",
"id-blacklist": "off",
"id-match": "off",
"keyword-spacing": ["warn", { "before": true }],
"max-len": [
"warn",
{
"code": 180
}
],
"no-prototype-builtins": "error",
"no-caller": "error",
"no-console": "off",
"no-debugger": "warn",
"no-eval": "error",
"no-fallthrough": "warn",
"no-invalid-this": "warn",
"no-new-wrappers": "warn",
"no-null/no-null": "off",
"no-redeclare": "off",
"no-restricted-imports": [
"error",
"..",
"../index",
"../..",
"../../index"
],
"no-return-await": "warn",
"no-sequences": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "warn",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-var": "error",
"prefer-const": [
"warn",
{
"destructuring": "all"
}
],
"prefer-object-spread": "warn",
"radix": "warn",
"spaced-comment": [
"warn",
"always",
{
"markers": [
"/"
],
"exceptions": [
"*"
]
}
}
};

module.exports = [
prettierConfig,
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
globals: {
...globals.browser,
...globals.node
}
],
"space-infix-ops": "warn",
"use-isnan": "warn"
},
plugins: {
'no-null': noNullPlugin,
'@typescript-eslint': tsPlugin,
header: headerPluginWithSchema
},
rules: {
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-dynamic-delete': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-shadow': [
'warn',
{
hoist: 'all'
}
],
'@typescript-eslint/no-unused-expressions': 'off',
semi: [
'error',
'always'
],
'header/header': ['error', 'block', [{ pattern: '[\n\r]+ \\* Copyright \\([cC]\\) \\d{4}(-\\d{4})? .*[\n\r]+' }]],
'brace-style': [
'warn',
'1tbs',
{ allowSingleLine: true }
],
'comma-dangle': ['warn', {
arrays: 'only-multiline',
objects: 'only-multiline'
}],
'constructor-super': 'error',
curly: 'off',
'eol-last': 'warn',
eqeqeq: [
'warn',
'smart'
],
'guard-for-in': 'off',
'id-blacklist': 'off',
'id-match': 'off',
'keyword-spacing': ['warn', { before: true }],
'max-len': [
'warn',
{
code: 180
}
],
'no-prototype-builtins': 'error',
'no-caller': 'error',
'no-console': 'off',
'no-debugger': 'warn',
'no-eval': 'error',
'no-fallthrough': 'warn',
'no-invalid-this': 'warn',
'no-new-wrappers': 'warn',
'no-null/no-null': 'off',
'no-redeclare': 'off',
'no-restricted-imports': [
'error',
'..',
'../index',
'../..',
'../../index'
],
'no-return-await': 'warn',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'warn',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'error',
'no-var': 'error',
'prefer-const': [
'warn',
{
destructuring: 'all'
}
],
'prefer-object-spread': 'warn',
radix: 'warn',
'spaced-comment': [
'warn',
'always',
{
markers: [
'/'
],
exceptions: [
'*'
]
}
],
'space-infix-ops': 'warn',
'use-isnan': 'warn'
}
}
};
];
7 changes: 4 additions & 3 deletions configs/base.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
"declaration": true,
"declarationMap": true,
"downlevelIteration": true,
"ignoreDeprecations": "6.0",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES2017",
"lib": [
"ES2017"
],
"module": "commonjs",
"moduleResolution": "node",
"module": "ESNext",
"moduleResolution": "bundler",
"noUnusedLocals": true,
"noImplicitOverride": true,
"skipLibCheck": true,
"strict": true,
"strictPropertyInitialization": false
}
}
}
8 changes: 4 additions & 4 deletions examples/states-langium/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"version": "0.7.0",
"engines": {
"vscode": "^1.46.0"
"vscode": "^1.91.0"
},
"categories": [
"Programming Languages"
Expand Down Expand Up @@ -182,11 +182,11 @@
],
"main": "./pack/extension/src/states-extension.cjs",
"devDependencies": {
"@types/node": "^22.9.0",
"@types/vscode": "1.50.0",
"@types/node": "^22.19.21",
"@types/vscode": "1.91.0",
"esbuild": "^0.28.1",
"sprotty-vscode": "^1.1.0",
"vscode-languageclient": "^9.0.1"
"vscode-languageclient": "^10.0.0"
},
"scripts": {
"prepare": "yarn run clean && yarn run build",
Expand Down
10 changes: 5 additions & 5 deletions examples/states-langium/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
},
"type": "module",
"dependencies": {
"langium": "^3.5.0",
"langium-sprotty": "^3.5.0",
"langium": "4.3.0",
"langium-sprotty": "4.3.0",
"sprotty-elk": "^1.4.0",
"vscode-languageserver": "^9.0.1"
"vscode-languageserver": "^10.0.0"
},
"devDependencies": {
"@types/node": "^14.17.3",
"langium-cli": "^3.0.3"
"@types/node": "^22.19.21",
"langium-cli": "4.3.0"
},
"scripts": {
"prepare": "yarn run clean && yarn run langium:generate && yarn run build",
Expand Down
Loading
Loading