Skip to content

MsTeamsChat_Altaflimbore_Submission2 #13

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended', // Makes ESLint and Prettier play nicely together
'plugin:import/recommended',
'plugin:import/typescript',
],
ignorePatterns: ['**/dist/*'],
overrides: [
{
files: ['**/*.test.ts'],
rules: {
'simple-import-sort/imports': 'off', // for test files we would want to load the mocked up modules later so on sorting the mocking mechanism will not work
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
},
plugins: ['prettier', 'unused-imports', 'import', 'simple-import-sort', 'sort-keys-fix'],
root: true,
rules: {
'import/first': 'error',
// Removes unused imports automatically,
'@typescript-eslint/no-explicit-any': 'warn',

// Ensures all imports are at the top of the file
'import/newline-after-import': 'error',
// Ensures there’s a newline after the imports
'import/no-duplicates': 'error',
// Merges import statements from the same file
'import/order': 'off',
// Not compatible with simple-import-sort
'no-unused-vars': 'off',
// Handled by @typescript-eslint/no-unused-vars
'simple-import-sort/exports': 'error',
// Auto-formats exports
'simple-import-sort/imports': 'error',
// Auto-formats imports
'sort-imports': 'off',
// Not compatible with simple-import-sort
'sort-keys-fix/sort-keys-fix': ['error', 'asc', { natural: true }],
// Sorts long object key lists alphabetically
'unused-imports/no-unused-imports': 'error', // Allows any type with a warning
},
};
27 changes: 27 additions & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Ignore node_modules directory
node_modules/

# Ignore logs and temporary files
*.log
*.tmp

# Ignore compiled output
dist/
build/

# Ignore environment-specific files
.env
.env.local
.env.*.local

# Ignore IDE and editor files
.vscode/
.idea/
*.sublime-project
*.sublime-workspace

# Ignore OS generated files
.DS_Store
Thumbs.db

build.tar.gz
1 change: 1 addition & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Add files here to ignore them from prettier formatting

/dist

15 changes: 15 additions & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxSingleQuote": false,
"arrowParens": "always",
"proseWrap": "never",
"htmlWhitespaceSensitivity": "strict",
"endOfLine": "lf",
"organizeImportsSkipDestructiveCodeActions": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
};
12 changes: 12 additions & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['text'],
coverageThreshold: {
'**/*': {
branches: 60,
},
},
preset: 'ts-jest',
testEnvironment: 'node',
};
5 changes: 5 additions & 0 deletions MsTeamschat_Altaflimbore_Submission2-main/code/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"execMap": {
"ts": "ts-node"
}
}
Loading