@odg/eslint-config 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc CHANGED
@@ -6,4 +6,4 @@
6
6
  "node": true
7
7
  },
8
8
  "extends": "./index.js"
9
- }
9
+ }
@@ -11,4 +11,4 @@
11
11
  "Typescript",
12
12
  "Json"
13
13
  ]
14
- }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odg/eslint-config",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Linter for JavaScript And Typescript project",
5
5
  "main": "index.js",
6
6
  "author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "devDependencies": {
14
+ "@types/node": "^16",
14
15
  "typescript": "*"
15
16
  },
16
17
  "peerDependencies": {
@@ -67,7 +67,7 @@ module.exports = {
67
67
  } ], // Requer espaço apos try {}
68
68
  "space-before-blocks": [ "error" ], // Requer espaço antes das chaves
69
69
  "space-unary-ops": [
70
- 2, {
70
+ "error", {
71
71
  words: true, // Espaço apos Await e palavras chaves
72
72
  nonwords: false, // Força nao ter espaço antes de operadores unários !, -, +
73
73
  overrides: {
@@ -21,6 +21,7 @@ module.exports = {
21
21
  "@typescript-eslint/explicit-function-return-type": [ "error" ], // Força tipo de retorno
22
22
  "no-unused-vars": [ "off" ], // Não permite variáveis não utilizadas
23
23
  "@typescript-eslint/no-unused-vars": [ "error", {
24
+ argsIgnorePattern: "^_",
24
25
  args: "after-used",
25
26
  } ], // Não permite variáveis não usado
26
27
  "default-param-last": [ "off" ], // Parâmetros default devem ficar no final
package/src/test.ts ADDED
@@ -0,0 +1,11 @@
1
+ // Test File example
2
+
3
+ export class TestClass {
4
+
5
+ public constructor(
6
+ public name: string,
7
+ ) {
8
+
9
+ }
10
+
11
+ }
package/tsconfig.json CHANGED
@@ -1,3 +1,18 @@
1
1
  {
2
- "extends": "@odg/tsconfig/tsconfig.json"
3
- }
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "outDir": "./dist",
5
+ "rootDirs": [
6
+ ".",
7
+ "./src"
8
+ ],
9
+ "typeRoots": [
10
+ "./src/@types",
11
+ "node_modules/@types"
12
+ ],
13
+ "types": [ "node" ]
14
+ },
15
+ "exclude": [ "./coverage/" ],
16
+ "extends": "@odg/tsconfig/tsconfig.node.json",
17
+ "include": [ "." ]
18
+ }