Skip to content

Commit

Permalink
update eslint version
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaveluy committed Aug 12, 2024
1 parent 13eb77d commit e0d691b
Show file tree
Hide file tree
Showing 18 changed files with 684 additions and 408 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

27 changes: 3 additions & 24 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,6 @@ jobs:
-Dsonar.exclusions=src/language/generated/*,src/language/builtins.ts,out/**
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.coverage.exclusions=**/*.test.*

lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build
shell: bash
run: |
npm ci
npm run langium:generate
npm run build:clean
- name: Check Git Status
shell: bash
run: git diff --exit-code .
- name: Lint
shell: bash
run: npm run lint
-Dsonar.tests=test/
-Dsonar.links.scm=https://github.com/ydaveluy/xsmp-modeler
-Dsonar.links.issue=https://github.com/ydaveluy/xsmp-modeler/issues
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ coverage/
examples/
sonar-report.xml
esbuild.mjs
eslint.config.mjs
langium-config.json
package.json
tsconfig.json
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- [ ] AsciiDoc Tool - generator
- [ ] xsmp-sdk Profile - generator
- [ ] esa-cdk Profile - generator
- [x] Project Wizard


### xsmp-modeler-core (**Xtext**) vs xsmp-modeler (**Langium**) comparison
Expand Down
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config({
files: ['src/**/*.ts'],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
});

Loading

0 comments on commit e0d691b

Please sign in to comment.