Skip to content

Commit

Permalink
Merge pull request #51 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 fef0f71 + c16cb5c commit 16e39ac
Show file tree
Hide file tree
Showing 13 changed files with 3,018 additions and 2,209 deletions.
30 changes: 0 additions & 30 deletions .eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ node_modules/
/playwright/.cache/
/.rete-qa
/dist
/coverage
/coverage
.rete-cli
.sonar
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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: {
"@typescript-eslint/naming-convention": "off",
"global-require": "off",
"@typescript-eslint/no-var-requires": "off",
"no-console": "off",
"no-empty-pattern": "off",
"init-declarations": "off",
"semi": "off",
"@typescript-eslint/semi": "off",
"newline-after-var": "off",
"no-undefined": "off",
"comma-dangle": "off",
"complexity": "off",
"max-statements": ["warn", 16],
'@typescript-eslint/no-require-imports': 'off',
}
},
{
files: ['src/tests/**/*.ts'],
rules: {
'@typescript-eslint/unbound-method': 'off',
}
}
)
Loading

0 comments on commit 16e39ac

Please sign in to comment.