Skip to content

Commit

Permalink
Merge pull request #7 from informachadocom/main
Browse files Browse the repository at this point in the history
Missing .gitignore inclusions.
  • Loading branch information
jfmarcoux authored Jan 29, 2024
2 parents 1789422 + 42252e9 commit b34a0bc
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// ==========================================
// 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": "off",
"@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/restrict-plus-operands" : "off",
"@typescript-eslint/ban-types": [
"off",
{
"types": {
"{}": true
},
"extendDefaults": true
}
]
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ yarn.lock
*.d.ts
*.js
!/prettier.config.js
!/.prettierrc.js
!/.eslintrc.js
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
"printWidth": 100,
"singleQuote": true,
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@villedemontreal/http-request",
"version": "7.4.8",
"version": "7.4.9",
"description": "HTTP utilities - send HTTP requests with proper headers, etc.",
"main": "dist/src/index.js",
"typings": "dist/src",
Expand Down

0 comments on commit b34a0bc

Please sign in to comment.