-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from retejs/new-linter
fix: update cli and fix linting errors
- Loading branch information
Showing
13 changed files
with
3,018 additions
and
2,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ node_modules/ | |
/playwright/.cache/ | ||
/.rete-qa | ||
/dist | ||
/coverage | ||
/coverage | ||
.rete-cli | ||
.sonar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
} | ||
} | ||
) |
Oops, something went wrong.