Skip to content

Commit 974343a

Browse files
committed
fix eslint config
1 parent e13ac97 commit 974343a

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

eslint.config.mjs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
import tsLint from 'typescript-eslint'
22
import stylisticLint from '@stylistic/eslint-plugin-ts'
33

4-
export default tsLint.config(
5-
{
4+
const files = ['src/**/*.ts', 'test/**/*.ts']
5+
6+
export default tsLint.config({
67
ignores: [
7-
'out/*',
8-
'node_modules/*',
98
'**/generated/**',
9+
'**/*.{js,cjs,mjs}'
1010
]
1111
},
12-
//eslintJs.configs.recommended,
13-
tsLint.configs.recommendedTypeChecked,
14-
stylisticLint.configs.all,
15-
/*{
16-
17-
}*/
12+
tsLint.configs.recommendedTypeChecked.map((config) => {
13+
return {
14+
...config,
15+
files
16+
}
17+
}),
18+
{
19+
...stylisticLint.configs.all,
20+
files
21+
},
1822
{
23+
files,
1924
languageOptions: {
2025
parserOptions: {
2126
project: ['./tsconfig.json'],

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"url": "https://github.com/lstreckeisen/context-mapper-language-server.git"
1717
},
1818
"scripts": {
19-
"build": "tsc -b tsconfig.src.json",
20-
"lint": "eslint src test --ext ts",
21-
"lint:fix": "eslint src test --ext ts --fix",
19+
"build": "tsc -b tsconfig.json",
20+
"lint": "eslint",
21+
"lint:fix": "eslint --fix",
2222
"langium:generate": "langium generate",
2323
"langium:generate:production": "langium generate --mode=production",
2424
"bundle:language-server": "npx ncc build out/language/main.js -o cml-ls",

tsconfig.src.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)