Skip to content

Commit 51ec0d9

Browse files
authored
Merge pull request #50 from retejs/new-linter
fix: update cli and fix linting errors
2 parents 16f5556 + 600fbe8 commit 51ec0d9

32 files changed

+2681
-2452
lines changed

.eslintrc

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
/bin
33
/coverage
4-
/test-*
4+
/test-*/coverage
5+
.rete-cli
6+
.sonar

assets/plugin-boilerplate/.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import tseslint from 'typescript-eslint';
2+
import configs from 'rete-cli/configs/eslint.mjs';
3+
4+
export default tseslint.config(
5+
...configs
6+
)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"compilerOptions": {
3-
"strict": true
4-
},
2+
"extends": "rete-cli/configs/tsconfig.json",
53
"include": ["src"]
64
}

eslint.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
'global-require': 'off',
18+
'@typescript-eslint/no-var-requires': 'off',
19+
'no-console': 'off',
20+
'@typescript-eslint/no-require-imports': 'off',
21+
'@typescript-eslint/only-throw-error': 'off',
22+
}
23+
}
24+
)

0 commit comments

Comments
 (0)