Skip to content

Commit

Permalink
feat: updated multiple dependencies and configurations
Browse files Browse the repository at this point in the history
- 100% test coverage
- longer release when only dev deps update
  • Loading branch information
Swiftwork committed Mar 16, 2022
1 parent a27be23 commit fb02611
Show file tree
Hide file tree
Showing 8 changed files with 11,500 additions and 2,189 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.js
Expand Up @@ -14,7 +14,12 @@ module.exports = {
},
rules: {
/* Important */
'prettier/prettier': 'warn',
'prettier/prettier': [
'warn',
{
endOfLine: 'auto',
},
],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
/* General */
Expand All @@ -33,4 +38,12 @@ module.exports = {
},
],
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};
20 changes: 7 additions & 13 deletions .vscode/settings.json
@@ -1,26 +1,20 @@
{
"docthis.includeMemberOfOnClassMembers": false,
"docthis.includeMemberOfOnInterfaceMembers": false,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"eslint.validate": ["javascript", "typescript"],
"eslint.validate": [
"javascript",
"typescript"
],
"files.associations": {
".releaserc": "jsonc"
},
"files.insertFinalNewline": true,
"highlight.regexes": {
"(Lang\\.[\\wåäöÅÄÖ.]+)": {
"color": "#98c379"
},
"(\\/\\/ ?(todo|ToDo|TODO):.+)": {
"color": "#ffa8e0"
}
},
"git.inputValidationSubjectLength": 72,
"html.format.wrapAttributes": "force",
"search.exclude": {
"**/node_modules": true,
"dist": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"git.inputValidationSubjectLength": 72
"tsImportSorter.configuration.wrappingStyle": "prettier",
"typescript.tsdk": "node_modules/typescript/lib"
}
11 changes: 7 additions & 4 deletions jest.config.js
@@ -1,9 +1,12 @@
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.ts$': 'ts-jest',
preset: 'ts-jest',
globals: {
'ts-jest': {
tsconfig: {
target: 'es6',
},
},
},
moduleDirectories: ['node_modules', 'src'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts'],
coverageReporters: ['lcovonly', 'text', 'text-summary'],
Expand Down

0 comments on commit fb02611

Please sign in to comment.