Skip to content

Commit 16e39ac

Browse files
authored
Merge pull request #51 from retejs/new-linter
fix: update cli and fix linting errors
2 parents fef0f71 + c16cb5c commit 16e39ac

File tree

13 files changed

+3018
-2209
lines changed

13 files changed

+3018
-2209
lines changed

.eslintrc

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ node_modules/
44
/playwright/.cache/
55
/.rete-qa
66
/dist
7-
/coverage
7+
/coverage
8+
.rete-cli
9+
.sonar

eslint.config.mjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import tseslint from 'typescript-eslint';
2+
import configs from 'rete-cli/configs/eslint.mjs';
3+
import globals from 'globals'
4+
5+
export default tseslint.config(
6+
{
7+
ignores: ['assets'],
8+
languageOptions: {
9+
globals: {
10+
...globals.node
11+
}
12+
}
13+
},
14+
...configs,
15+
{
16+
rules: {
17+
"@typescript-eslint/naming-convention": "off",
18+
"global-require": "off",
19+
"@typescript-eslint/no-var-requires": "off",
20+
"no-console": "off",
21+
"no-empty-pattern": "off",
22+
"init-declarations": "off",
23+
"semi": "off",
24+
"@typescript-eslint/semi": "off",
25+
"newline-after-var": "off",
26+
"no-undefined": "off",
27+
"comma-dangle": "off",
28+
"complexity": "off",
29+
"max-statements": ["warn", 16],
30+
'@typescript-eslint/no-require-imports': 'off',
31+
}
32+
},
33+
{
34+
files: ['src/tests/**/*.ts'],
35+
rules: {
36+
'@typescript-eslint/unbound-method': 'off',
37+
}
38+
}
39+
)

0 commit comments

Comments
 (0)