-
Notifications
You must be signed in to change notification settings - Fork 2
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 #6 from informachadocom/main
Fix Vulnerabilities. ESLint.
- Loading branch information
Showing
24 changed files
with
3,070 additions
and
6,468 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.* | ||
|
||
/node_modules | ||
/test | ||
/output | ||
/dist | ||
/temp | ||
/test-* | ||
/log | ||
/html | ||
|
||
Jenkinsfile | ||
package.json | ||
package-lock.json | ||
tsconfig.json | ||
yarn.lock | ||
README.md | ||
license | ||
|
||
*.map | ||
*.yaml | ||
*.hbs | ||
*.txt | ||
*.js |
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,58 @@ | ||
// ========================================== | ||
// We use the ".js" variation of the ESLint config file because | ||
// it allows to specify the "tsconfigRootDir" config using "__dirname" | ||
// and this is required for the generator to format a generated project. | ||
// ========================================== | ||
|
||
module.exports = { | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"], | ||
"tsconfigRootDir": __dirname, | ||
"es6": true | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-ternary": "off", | ||
"@typescript-eslint/restrict-template-expressions": ["off", { "allowAny": true }], | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/unbound-method": "off", | ||
"@typescript-eslint/no-unnecessary-type-assertion": "off", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"@typescript-eslint/restrict-plus-operands" : "off", | ||
"@typescript-eslint/no-empty-function" : "off", | ||
"@typescript-eslint/await-thenable" : "off", | ||
"@typescript-eslint/ban-types": [ | ||
"off", | ||
{ | ||
"types": { | ||
"{}": true | ||
}, | ||
"extendDefaults": true | ||
} | ||
], | ||
"no-async-promise-executor": "off", | ||
"prefer-spread": "off", | ||
} | ||
} |
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 |
---|---|---|
|
@@ -32,4 +32,3 @@ jobs: | |
- run: npm publish --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
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
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
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,4 @@ | ||
module.exports = { | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
} |
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,23 @@ | ||
import * as path from 'path'; | ||
|
||
/** | ||
* Configurations for the application. | ||
*/ | ||
class Configs { | ||
/** | ||
* Absolute path to the root of the project. | ||
*/ | ||
public root: string; | ||
|
||
/** | ||
* Absolute path to a directory to use for tests. | ||
*/ | ||
public dataDirPath: string; | ||
|
||
constructor() { | ||
this.root = path.normalize(`${__dirname}/..`); | ||
this.dataDirPath = `${this.root}/test-data`; | ||
} | ||
} | ||
|
||
export const configs: Configs = new Configs(); |
Oops, something went wrong.