@odg/eslint-config 0.9.2 → 0.9.3
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 +1 -1
- package/.vscode/settings.json +1 -1
- package/package.json +2 -1
- package/rules/javascript/best-practices.js +1 -1
- package/src/test.ts +11 -0
- package/tsconfig.json +17 -2
package/.eslintrc
CHANGED
package/.vscode/settings.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odg/eslint-config",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
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
|
-
|
|
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: {
|
package/src/test.ts
ADDED
package/tsconfig.json
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
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
|
+
}
|