@hansevision/eslint-config 1.0.7 → 1.0.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAmCzB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAiCzB,CAAC;AAEF,eAAe,IAAI,CAAC"}
package/dist/index.js CHANGED
@@ -3,38 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.base = void 0;
4
4
  exports.base = {
5
5
  parser: "@typescript-eslint/parser",
6
+ ignorePatterns: ["**/*.d.ts"],
6
7
  parserOptions: {
7
8
  ecmaVersion: 2020,
8
9
  sourceType: "module",
9
10
  },
10
- plugins: ["@typescript-eslint", "sonarjs", "check-file"],
11
+ plugins: ["@typescript-eslint", "sonarjs"],
11
12
  extends: [
12
13
  "eslint:recommended",
13
14
  "plugin:@typescript-eslint/recommended",
14
15
  "plugin:sonarjs/recommended-legacy",
15
16
  ],
16
17
  rules: {
17
- "quotes": ["error", "double"],
18
- "no-console": ["error", { "allow": ["warn", "error"] }],
18
+ quotes: ["error", "double"],
19
+ "no-console": ["error", { allow: ["warn", "error"] }],
19
20
  "no-var": "error",
20
21
  "@typescript-eslint/no-explicit-any": "warn",
21
22
  "@typescript-eslint/no-unused-vars": [
22
23
  "error",
23
- { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" },
24
+ { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
24
25
  ],
25
26
  "@typescript-eslint/no-non-null-assertion": "warn",
26
27
  "no-debugger": "error",
27
- "eqeqeq": ["error", "always"],
28
- "curly": ["error", "all"],
29
- "check-file/folder-naming-convention": [
28
+ eqeqeq: ["error", "always"],
29
+ curly: ["error", "all"],
30
+ "sonarjs/no-duplicate-string": ["error", { threshold: 2 }],
31
+ "sonarjs/max-lines": ["error", { maximum: 40 }],
32
+ "sonarjs/arrow-function-convention": [
30
33
  "error",
31
- {
32
- "src/**/": "CAMEL_CASE"
33
- }
34
+ { requireParameterParentheses: true, requireBodyBraces: true },
34
35
  ],
35
- "sonarjs/no-duplicate-string": ["error", { "threshold": 2 }],
36
- "sonarjs/max-lines": ["error", { "maximum": 40 }],
37
- "sonarjs/arrow-function-convention": ["error", { "requireParameterParentheses": true, "requireBodyBraces": true }]
38
36
  },
39
37
  };
40
38
  exports.default = exports.base;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,IAAI,GAAkB;IACjC,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;KACrB;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,SAAS,EAAE,YAAY,CAAC;IACxD,OAAO,EAAE;QACP,oBAAoB;QACpB,uCAAuC;QACvC,mCAAmC;KACpC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;QAC7B,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;QACvD,QAAQ,EAAE,OAAO;QACjB,oCAAoC,EAAE,MAAM;QAC5C,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,mBAAmB,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE;SACzD;QACD,0CAA0C,EAAE,MAAM;Q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AAE,QAAQ,CAAC;QAC3B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QACvB,6BAA6B,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;QAC1D,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC/C,mCAAmC,EAAE;YACnC,OAAO;YACP,EAAE,2BAA2B,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE;SAC/D;KACF;CACF,CAAC;AAEF,kBAAe,YAAI,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hansevision/eslint-config",
3
3
  "author": "HanseVision",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "description": "Shareable ESLint configuration with TypeScript support",
6
6
  "keywords": [],
7
7
  "license": "UNLICENSED",
@@ -28,8 +28,7 @@
28
28
  "eslint": ">=7.0.0",
29
29
  "@typescript-eslint/eslint-plugin": ">=5.0.0",
30
30
  "@typescript-eslint/parser": ">=5.0.0",
31
- "eslint-plugin-sonarjs": "^4.0.2",
32
- "eslint-plugin-check-file": ">=1.0.0"
31
+ "eslint-plugin-sonarjs": "^4.0.2"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@types/eslint": "^8.0.0",
@@ -37,7 +36,6 @@
37
36
  "@typescript-eslint/parser": "^5.62.0",
38
37
  "eslint": "^8.57.1",
39
38
  "eslint-plugin-sonarjs": "^4.0.2",
40
- "eslint-plugin-check-file": "^2.0.0",
41
39
  "typescript": "^3.9.10"
42
40
  },
43
41
  "volta": {