@apitree.cz/eslint-config 0.1.0 → 0.1.1-next.86a2c7b

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/README.md CHANGED
@@ -55,3 +55,15 @@ module.exports = {
55
55
  },
56
56
  };
57
57
  ```
58
+
59
+ ### Nest.js
60
+
61
+ ```javascript
62
+ module.exports = {
63
+ extends: '@apitree.cz/eslint-config/nestjs',
64
+ parserOptions: {
65
+ project: './tsconfig.json',
66
+ tsconfigRootDir: __dirname,
67
+ },
68
+ };
69
+ ```
@@ -0,0 +1,7 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const config: {
3
+ env: {
4
+ browser: false;
5
+ };
6
+ rules: Linter.RulesRecord;
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.config = void 0;
4
+ const rules_1 = require("./rules");
5
+ exports.config = {
6
+ env: { browser: false },
7
+ rules: rules_1.rules,
8
+ };
9
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/nestjs/config.ts"],"names":[],"mappings":";;;AAEA,mCAAgC;AAEnB,QAAA,MAAM,GAAG;IACpB,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;IACvB,KAAK,EAAL,aAAK;CACkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const rules: Linter.RulesRecord;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = void 0;
4
+ exports.rules = {
5
+ 'class-methods-use-this': 'off',
6
+ 'no-empty-function': ['error', { allow: ['constructors'] }],
7
+ 'unicorn/prefer-module': 'off',
8
+ 'unicorn/prefer-top-level-await': 'off',
9
+ '@typescript-eslint/no-extraneous-class': [
10
+ 'error',
11
+ { allowWithDecorator: true },
12
+ ],
13
+ };
14
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/nestjs/rules.ts"],"names":[],"mappings":";;;AAEa,QAAA,KAAK,GAAuB;IACvC,wBAAwB,EAAE,KAAK;IAC/B,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;IAC3D,uBAAuB,EAAE,KAAK;IAC9B,gCAAgC,EAAE,KAAK;IACvC,wCAAwC,EAAE;QACxC,OAAO;QACP,EAAE,kBAAkB,EAAE,IAAI,EAAE;KAC7B;CACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Linter } from 'eslint';
2
+ declare const _default: {
3
+ extends: string[];
4
+ env: {
5
+ browser: false;
6
+ };
7
+ rules: Linter.RulesRecord;
8
+ };
9
+ export = _default;
package/dist/nestjs.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ const config_1 = require("./nestjs/config");
3
+ module.exports = {
4
+ ...config_1.config,
5
+ extends: [require.resolve('./base')],
6
+ };
7
+ //# sourceMappingURL=nestjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../src/nestjs.ts"],"names":[],"mappings":";AAEA,4CAAyC;AAEzC,iBAAS;IACP,GAAG,eAAM;IACT,OAAO,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;CACb,CAAC"}
package/nestjs.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/nestjs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/eslint-config",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-next.86a2c7b",
4
4
  "description": "ESLint configuration for ApiTree projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,13 @@
14
14
  "base.js",
15
15
  "dist",
16
16
  "index.js",
17
+ "nestjs.js",
17
18
  "nextjs.js",
18
19
  "react.js"
19
20
  ],
20
21
  "dependencies": {
21
22
  "@next/eslint-plugin-next": "^14.0.0",
23
+ "@types/eslint": "^8.44.6",
22
24
  "@typescript-eslint/eslint-plugin": "^6.9.0",
23
25
  "@typescript-eslint/parser": "^6.9.0",
24
26
  "eslint-config-airbnb": "^19.0.4",
@@ -35,15 +37,14 @@
35
37
  "eslint-plugin-testing-library": "^6.1.0",
36
38
  "eslint-plugin-unicorn": "^48.0.1",
37
39
  "eslint-plugin-unused-imports": "^3.0.0",
38
- "eslint-plugin-vitest": "^0.3.8"
40
+ "eslint-plugin-vitest": "^0.3.8",
41
+ "vitest": "^0.34.6"
39
42
  },
40
43
  "devDependencies": {
41
- "@types/eslint": "^8.44.6",
42
44
  "eslint": "^8.52.0",
43
45
  "prettier": "^3.0.3",
44
46
  "react": "^18.2.0",
45
- "typescript": "^5.2.2",
46
- "vitest": "^0.34.6"
47
+ "typescript": "^5.2.2"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "eslint": "^8.52.0",