Skip to content

Commit

Permalink
Merge pull request #50 from retejs/new-linter
Browse files Browse the repository at this point in the history
fix: update cli and fix linting errors
  • Loading branch information
Ni55aN authored Aug 30, 2024
2 parents 16f5556 + 600fbe8 commit 51ec0d9
Show file tree
Hide file tree
Showing 32 changed files with 2,681 additions and 2,452 deletions.
19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
/bin
/coverage
/test-*
/test-*/coverage
.rete-cli
.sonar
3 changes: 0 additions & 3 deletions assets/plugin-boilerplate/.eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions assets/plugin-boilerplate/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import tseslint from 'typescript-eslint';
import configs from 'rete-cli/configs/eslint.mjs';

export default tseslint.config(
...configs
)
4 changes: 1 addition & 3 deletions assets/plugin-boilerplate/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"compilerOptions": {
"strict": true
},
"extends": "rete-cli/configs/tsconfig.json",
"include": ["src"]
}
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import tseslint from 'typescript-eslint';
import configs from 'rete-cli/configs/eslint.mjs';
import globals from 'globals'

export default tseslint.config(
{
ignores: ['assets'],
languageOptions: {
globals: {
...globals.node
}
}
},
...configs,
{
rules: {
'global-require': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-console': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/only-throw-error': 'off',
}
}
)
Loading

0 comments on commit 51ec0d9

Please sign in to comment.