@odg/eslint-config 0.9.1 → 0.9.2
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/index.js +3 -1
- package/package.json +2 -1
- package/rules/javascript/best-practices.js +5 -1
- package/rules/json/base.js +0 -1
- package/tsconfig.json +1 -30
- package/tsconfig-eslint.json +0 -4
package/index.js
CHANGED
|
@@ -48,6 +48,8 @@ module.exports = {
|
|
|
48
48
|
"tmp/",
|
|
49
49
|
|
|
50
50
|
"**/*.min.*",
|
|
51
|
+
"package-lock.json",
|
|
52
|
+
"yarn.lock",
|
|
51
53
|
],
|
|
52
54
|
settings: {
|
|
53
55
|
"html/report-bad-indent": "error",
|
|
@@ -95,7 +97,7 @@ module.exports = {
|
|
|
95
97
|
},
|
|
96
98
|
ecmaVersion: 2022,
|
|
97
99
|
sourceType: "module",
|
|
98
|
-
project: [ "tsconfig.json", "tsconfig
|
|
100
|
+
project: [ "tsconfig.json", "@odg/tsconfig/tsconfig.json" ], // Specify it only for TypeScript files
|
|
99
101
|
},
|
|
100
102
|
},
|
|
101
103
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odg/eslint-config",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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>",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/core": "*",
|
|
21
|
+
"@odg/tsconfig": "*",
|
|
21
22
|
"@typescript-eslint/eslint-plugin": "*",
|
|
22
23
|
"@typescript-eslint/parser": "*",
|
|
23
24
|
"eslint": "*",
|
|
@@ -230,7 +230,11 @@ module.exports = {
|
|
|
230
230
|
"error",
|
|
231
231
|
"^[a-zA-Z][a-zA-Z0-9_-]+((\\.[a-z]+)?)+$",
|
|
232
232
|
], // Nome de arquivo deve ser alfanumérico
|
|
233
|
-
"filenames/match-exported": [
|
|
233
|
+
"filenames/match-exported": [
|
|
234
|
+
"error",
|
|
235
|
+
"^[a-zA-Z0-9_-]+$",
|
|
236
|
+
"\\.[a-z]+$",
|
|
237
|
+
], // Nome do arquivo igual export default
|
|
234
238
|
"unicorn/catch-error-name": [
|
|
235
239
|
"error",
|
|
236
240
|
{
|
package/rules/json/base.js
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,32 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"allowJs": true,
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"emitDecoratorMetadata": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"lib": [
|
|
10
|
-
"es6",
|
|
11
|
-
"ES2021"
|
|
12
|
-
],
|
|
13
|
-
"module": "commonjs",
|
|
14
|
-
"outDir": "./dist",
|
|
15
|
-
"paths": {
|
|
16
|
-
"~/*": [ "source/*" ]
|
|
17
|
-
},
|
|
18
|
-
"removeComments": true,
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
"rootDir": "./source",
|
|
21
|
-
"skipLibCheck": true,
|
|
22
|
-
"sourceMap": true,
|
|
23
|
-
"strictNullChecks": true,
|
|
24
|
-
"target": "es2018",
|
|
25
|
-
"typeRoots": [
|
|
26
|
-
"./node_modules/@types",
|
|
27
|
-
"./source/@types"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"exclude": [ "node_modules" ],
|
|
31
|
-
"include": [ "source/**/*" ]
|
|
2
|
+
"extends": "@odg/tsconfig/tsconfig.json"
|
|
32
3
|
}
|
package/tsconfig-eslint.json
DELETED