@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 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-eslint.json" ], // Specify it only for TypeScript files
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.1",
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": [ "error", "^[a-zA-Z0-9_-]+$" ], // Nome do arquivo igual export default
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
  {
@@ -13,7 +13,6 @@ module.exports = {
13
13
  "no-unused-expressions": [ "off" ],
14
14
  "import/unambiguous": [ "off" ],
15
15
  "filenames/match-regex": [ "off" ],
16
- "eol-last": [ "error", "never" ],
17
16
  },
18
17
  },
19
18
  {
package/tsconfig.json CHANGED
@@ -1,32 +1,3 @@
1
1
  {
2
- "compilerOptions": {
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
  }
@@ -1,4 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": [ "./" ]
4
- }