Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Feb 28, 2024
1 parent 66bcd85 commit e9a0120
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 53 deletions.
87 changes: 45 additions & 42 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,59 @@
{
"env": {
"root": true, // this is root configuration for project
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "commonjs",
"project": "./tsconfig.json",
"ecmaFeatures": { // is this necessary? DAP doesn't have this
"impliedStrict": true
}
},

"env": {
"browser": true,
"es2022": true,
"node": true,
//"es2020": true,
"mocha": true
},
"extends": [
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript"
],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "commonjs",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// eslint: recommended - disable core rules -> they're overridden by TS-eslint
"no-unused-vars": "off", // remove when fixed -> caused by eslint:recommended
"no-extra-semi": "off", // remove when fixed -> caused by eslint:recommended
"prefer-const": "warn",

"plugins": [
"@typescript-eslint",
"eslint-plugin-import" // required by no-extraneous-dependencies
],
"rules": {
// from dap
"@typescript-eslint/naming-convention": "warn",

"semi": "off", // can be turned off -> covered by @typescript-eslint/semi
"@typescript-eslint/semi": "warn",

"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",

//lsp
"@typescript-eslint/no-var-requires": "off", /** allows require statements outside of imports **/
"no-async-promise-executor": "off", /* Deactivated for now as i do not know how to fix it safely*/
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "warn",

// jenom "test"
"@typescript-eslint/no-unused-vars": "warn",
"no-empty": "warn",
"no-irregular-whitespace": "warn",





"import/no-extraneous-dependencies": [
"error",
"warn", // change to err
{
"devDependencies": [
"**/test/**",
Expand All @@ -40,25 +62,6 @@
"optionalDependencies": false,
"peerDependencies": false
}
],

// typescript-eslint/recommended
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-var-requires": "off", /** allows require statements outside of imports **/
"@typescript-eslint/no-explicit-any": "warn", // off by original
"@typescript-eslint/no-namespace": "off", // off by original

// typescript-eslint/recommended-requiring-type-checking
"@typescript-eslint/restrict-plus-operands": "warn"
},
"ignorePatterns": [
"out",
"**/*.d.ts",
"test Fixture with speci@l chars",
"src/ui-test/resources",
"node_modules",
".vscode-test",
"test-resources",
".test-extensions"
]
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Main CI

on:
push:
branches: [ main ]
branches: [ main, FUSETOOLS2-2256 ]
pull_request:
branches: [ main ]
workflow_dispatch:
Expand Down
17 changes: 7 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
"module": "Node16",
"moduleResolution": "Node16",
"target": "ES2022",
"outDir": "out",
"lib": [
"ES2022"
],
"sourceMap": true,
"rootDir": "src",
"skipLibCheck": true,
"ES2022"
],
"outDir": "out",
"resolveJsonModule": true,
"strict": true, // true causes like million errors here
"forceConsistentCasingInFileNames": true
Expand All @@ -18,10 +15,10 @@
"src"
],
"exclude": [
"out",
"**/*.d.ts",
"test Fixture with speci@l chars",
"src/ui-test/resources",
// "out", // ??
// "**/*.d.ts", // ??
// "test Fixture with speci@l chars", // ??
// "src/ui-test/resources", // ??
"node_modules",
".vscode-test",
"test-resources",
Expand Down

0 comments on commit e9a0120

Please sign in to comment.