-
Notifications
You must be signed in to change notification settings - Fork 1
chore: Add ESLint and Prettier configuration files for code quality #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ee7cc58
feat: Integrate Vitest for testing and coverage in the temporal worker
anatolyshipitz 5ef9232
fix: Add missing newline at end of files in Vitest configuration and …
anatolyshipitz 7bb5c80
chore: Update package-lock.json with resolved URLs and integrity hashes
anatolyshipitz 075310a
chore: Update dependencies and enhance documentation in main worker
anatolyshipitz 7c7d5c9
chore: Add ESLint and Prettier configuration files for code quality
anatolyshipitz 37264a7
chore: Update configuration files for code quality improvements
anatolyshipitz 96dd98c
chore: Update TypeScript version and improve test imports
anatolyshipitz 17d29aa
chore: Refactor ESLint and Vitest configurations for improved clarity
anatolyshipitz 709dca0
chore: Update code quality workflow to include ESLint and dependency …
anatolyshipitz 2d571f8
Merge branch 'feature/64211-temporal-worker-tests' into feature/64211…
anatolyshipitz 063b11a
chore: Fix ESLint configuration by removing trailing comma
anatolyshipitz a8c46d6
chore: Update Prettier configuration for improved formatting
anatolyshipitz 1d2de23
Merge branch 'main' into feature/64211-temporal-worker-eslint
anatolyshipitz 176975a
chore: Simplify ESLint configuration by removing unnecessary structure
anatolyshipitz 03b0848
chore: Update ESLint configuration in package.json
anatolyshipitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,2 +1,4 @@ | ||
sonar.projectKey=speedandfunction_automatization | ||
sonar.organization=speedandfunction | ||
sonar.javascript.lcov.reportPaths=workers/main/coverage/lcov.info | ||
sonar.exclusions=**/src/__tests__/**,**/src/dist/** |
This file contains hidden or 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,4 @@ | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage | ||
/.nx/cache |
This file contains hidden or 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,11 @@ | ||
{ | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"endOfLine": "auto", | ||
"quoteProps": "consistent" | ||
} |
This file contains hidden or 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,79 @@ | ||
import tseslint from '@typescript-eslint/eslint-plugin'; | ||
import tsparser from '@typescript-eslint/parser'; | ||
import prettier from 'eslint-plugin-prettier'; | ||
import eslintImport from 'eslint-plugin-import'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
|
||
export default [ | ||
{ | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
"node": { | ||
"extensions": [".ts"] | ||
} | ||
}, | ||
}, | ||
}, | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
languageOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
parser: tsparser, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
plugins: { | ||
'@typescript-eslint': tseslint, | ||
'prettier': prettier, | ||
'import': eslintImport, | ||
'simple-import-sort': simpleImportSort, | ||
}, | ||
ignores: [ | ||
'node_modules', | ||
'dist', | ||
'eslint.config.mjs', | ||
'coverage', | ||
'coverage/*', | ||
'coverage/**/*' | ||
], | ||
rules: { | ||
...tseslint.configs.recommended.rules, | ||
...tseslint.configs['recommended-requiring-type-checking'].rules, | ||
...prettier.configs.recommended.rules, | ||
|
||
'prettier/prettier': 'error', | ||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], | ||
'no-console': 'warn', | ||
'no-debugger': 'warn', | ||
'import/order': [ | ||
'error', | ||
{ | ||
groups: ['builtin', 'external', 'internal'], | ||
'newlines-between': 'always', | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
'import/no-unresolved': 'error', | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'padding-line-between-statements': [ | ||
'error', | ||
{ blankLine: 'always', prev: '*', next: 'return' }, | ||
{ | ||
blankLine: 'always', | ||
prev: ['const', 'let', 'var', 'import'], | ||
next: '*', | ||
}, | ||
{ | ||
blankLine: 'any', | ||
prev: ['const', 'let', 'var', 'import'], | ||
next: ['const', 'let', 'var', 'import'], | ||
}, | ||
], | ||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'error', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.