-
-
Notifications
You must be signed in to change notification settings - Fork 44
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 #58 from retejs/new-linter
fix: update cli and fix linting errors
- Loading branch information
Showing
32 changed files
with
3,453 additions
and
2,368 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
node_modules | ||
dist | ||
docs | ||
.vscode | ||
/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,50 @@ | ||
import tseslint from 'typescript-eslint' | ||
import react from 'eslint-plugin-react' | ||
import configs, { extendNamingConventions } from 'rete-cli/configs/eslint.mjs' | ||
import globals from 'globals' | ||
|
||
export default tseslint.config( | ||
...configs, | ||
{ | ||
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'], | ||
plugins: { | ||
react, | ||
}, | ||
}, | ||
react.configs.flat.recommended, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
globals: { | ||
...globals.browser, | ||
...globals.es2017 | ||
} | ||
} | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
...extendNamingConventions( | ||
{ | ||
'selector': 'variable', | ||
'format': ['camelCase', 'UPPER_CASE', 'PascalCase'], | ||
'leadingUnderscore': 'allow' | ||
}, | ||
{ | ||
'selector': 'function', | ||
'format': ['camelCase', 'PascalCase'], | ||
'leadingUnderscore': 'allow' | ||
} | ||
) | ||
], | ||
'@typescript-eslint/no-deprecated': 'warn', | ||
'react/no-deprecated': 'warn', | ||
'@typescript-eslint/unbound-method': 'off' | ||
} | ||
} | ||
) |
Oops, something went wrong.