@clipboard-health/eslint-config 4.0.8 → 4.2.0

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.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "extends": ["../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "parserOptions": {
5
+ "project": "tsconfig.lint.json",
6
+ "tsconfigRootDir": "packages/eslint-config"
7
+ },
8
+ "overrides": [
9
+ {
10
+ "files": "*.json",
11
+ "parser": "jsonc-eslint-parser",
12
+ "rules": {
13
+ "@nx/dependency-checks": "off"
14
+ }
15
+ }
16
+ ]
17
+ }
package/README.md CHANGED
@@ -5,7 +5,6 @@ Shared [ESLint](https://eslint.org/) configuration.
5
5
  ## Table of Contents
6
6
 
7
7
  - [Install](#install)
8
- - [Usage](#usage)
9
8
  - [Local development commands](#local-development-commands)
10
9
 
11
10
  ## Install
@@ -38,8 +37,6 @@ module.exports = {
38
37
  };
39
38
  ```
40
39
 
41
- ## Usage
42
-
43
40
  ## Local development commands
44
41
 
45
42
  See [`package.json`](./package.json) `scripts` for a list of commands.
package/jest.config.ts ADDED
@@ -0,0 +1,19 @@
1
+ export default {
2
+ coverageDirectory: "../../coverage/packages/eslint-config",
3
+ coveragePathIgnorePatterns: [],
4
+ coverageThreshold: {
5
+ global: {
6
+ branches: 100,
7
+ functions: 100,
8
+ lines: 100,
9
+ statements: 100,
10
+ },
11
+ },
12
+ displayName: "eslint-config",
13
+ moduleFileExtensions: ["ts", "js"],
14
+ preset: "../../jest.preset.js",
15
+ testEnvironment: "node",
16
+ transform: {
17
+ "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }],
18
+ },
19
+ };
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "@clipboard-health/eslint-config",
3
- "version": "4.0.8",
3
+ "description": "Clipboard Health's ESLint configuration.",
4
+ "version": "4.2.0",
5
+ "bugs": "https://github.com/clipboardhealth/core-utils/issues",
6
+ "keywords": [
7
+ "config",
8
+ "eslint"
9
+ ],
10
+ "license": "MIT",
4
11
  "main": "./src/index.js",
5
12
  "peerDependencies": {
6
13
  "@typescript-eslint/eslint-plugin": ">=7",
@@ -21,13 +28,17 @@
21
28
  "eslint-plugin-react-hooks": ">=4",
22
29
  "eslint-plugin-security": ">=1",
23
30
  "eslint-plugin-simple-import-sort": ">=10",
24
- "eslint-plugin-sonarjs": "^0.23 || ^1.0.0",
31
+ "eslint-plugin-sonarjs": "^0.23",
25
32
  "eslint-plugin-unicorn": ">=48"
26
33
  },
27
- "scripts": {
28
- "build": "nx build eslint-config",
29
- "lint": "nx lint eslint-config",
30
- "test": "nx test eslint-config"
34
+ "publishConfig": {
35
+ "access": "public"
31
36
  },
32
- "type": "commonjs"
33
- }
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/clipboardhealth/core-utils.git",
40
+ "directory": "packages/nx-plugin"
41
+ },
42
+ "type": "commonjs",
43
+ "typings": "./src/index.d.ts"
44
+ }
package/project.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
3
+ "name": "eslint-config",
4
+ "projectType": "library",
5
+ "sourceRoot": "packages/eslint-config/src",
6
+ "tags": [],
7
+ "targets": {
8
+ "build": {
9
+ "executor": "@nx/js:tsc",
10
+ "options": {
11
+ "assets": ["packages/eslint-config/*.md"],
12
+ "main": "packages/eslint-config/src/index.js",
13
+ "outputPath": "dist/packages/eslint-config",
14
+ "tsConfig": "packages/eslint-config/tsconfig.lib.json"
15
+ },
16
+ "outputs": ["{options.outputPath}"]
17
+ },
18
+ "lint": {
19
+ "executor": "@nx/eslint:lint",
20
+ "options": {
21
+ "lintFilePatterns": ["packages/eslint-config/**/*.[jt]s"],
22
+ "maxWarnings": 0
23
+ },
24
+ "outputs": ["{options.outputFile}"]
25
+ },
26
+ "test": {
27
+ "executor": "@nx/jest:jest",
28
+ "options": {
29
+ "jestConfig": "packages/eslint-config/jest.config.ts"
30
+ }
31
+ }
32
+ }
33
+ }
package/src/index.js CHANGED
@@ -1,156 +1,182 @@
1
- "use strict";
2
1
  module.exports = {
3
- extends: [
4
- "airbnb-base",
5
- "plugin:eslint-comments/recommended",
6
- "plugin:jest/recommended",
7
- "plugin:jest/style",
8
- "plugin:import/recommended",
9
- "plugin:n/recommended",
10
- "plugin:no-use-extend-native/recommended",
11
- "plugin:security/recommended",
12
- "plugin:sonarjs/recommended",
13
- "plugin:unicorn/recommended",
14
- "prettier",
15
- "xo",
16
- "xo-typescript/space",
2
+ extends: [
3
+ "eslint:recommended",
4
+ "plugin:@typescript-eslint/eslint-recommended",
5
+ "plugin:@typescript-eslint/recommended",
6
+ "airbnb-base",
7
+ "plugin:eslint-comments/recommended",
8
+ "plugin:jest/recommended",
9
+ "plugin:jest/style",
10
+ "plugin:import/recommended",
11
+ "plugin:n/recommended",
12
+ "plugin:no-use-extend-native/recommended",
13
+ "plugin:security/recommended",
14
+ "plugin:sonarjs/recommended",
15
+ "plugin:unicorn/recommended",
16
+ "xo",
17
+ "xo-typescript/space",
18
+ "prettier",
19
+ ],
20
+ parser: "@typescript-eslint/parser",
21
+ parserOptions: {
22
+ project: ["tsconfig.json"],
23
+ tsconfigRootDir: __dirname,
24
+ },
25
+ plugins: ["jest", "no-only-tests", "simple-import-sort", "sonarjs", "@typescript-eslint"],
26
+ rules: {
27
+ /**
28
+ * Disable the capitalization of comments
29
+ * It makes code "not build" when just commented temporarily, which we've
30
+ * found to add more friction than the value from having consistent capitalization.
31
+ */
32
+ "capitalized-comments": "off",
33
+
34
+ // See https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections
35
+ "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
36
+
37
+ // Too many false positives
38
+ "@typescript-eslint/naming-convention": "off",
39
+ "security/detect-object-injection": "off",
40
+
41
+ // Prefer an escape hatch instead of an outright ban
42
+ "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
43
+
44
+ // Prefer debugging ease over an extra microtask by requiring `return await`.
45
+ // `no-return-await` states "This can make debugging more difficult."
46
+ "no-return-await": "off",
47
+ "@typescript-eslint/return-await": ["error", "always"],
48
+
49
+ // Prevent bugs
50
+ curly: ["error", "all"],
51
+
52
+ // Recommends using static fields instead of moving to a function
53
+ "class-methods-use-this": "off",
54
+
55
+ // Our libraries don't use ESM
56
+ "import/extensions": "off",
57
+ "n/no-missing-import": "off",
58
+ "n/no-unpublished-import": "off",
59
+ "unicorn/prefer-module": "off",
60
+
61
+ // Rely on `"n/no-extraneous-import"` instead
62
+ "import/no-extraneous-dependencies": "off",
63
+
64
+ // Doesn't play well with NX/monorepos
65
+ "import/no-unresolved": "off",
66
+
67
+ // Prefer named exports
68
+ "import/prefer-default-export": "off",
69
+
70
+ // Allow PascalCase for Decorators
71
+ "new-cap": ["warn", { newIsCap: true, capIsNew: false }],
72
+
73
+ "import/no-cycle": ["error", { ignoreExternal: true, maxDepth: 16 }],
74
+ /*
75
+ * Don't allow `.only` in tests to prevent it from making it
76
+ * into `main` and circumventing our tests.
77
+ */
78
+ "no-only-tests/no-only-tests": "error",
79
+
80
+ // Adapter from Airbnb's config, but allows ForOfStatement.
81
+ // See https://github.com/airbnb/javascript/blob/0f3ca32323b8d5770de3301036e65511c6d18e00/packages/eslint-config-airbnb-base/rules/style.js#L340-L358
82
+ "no-restricted-syntax": [
83
+ "error",
84
+ {
85
+ selector: "ForInStatement",
86
+ message:
87
+ "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
88
+ },
89
+ {
90
+ selector: "LabeledStatement",
91
+ message:
92
+ "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
93
+ },
94
+ {
95
+ selector: "WithStatement",
96
+ message:
97
+ "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
98
+ },
17
99
  ],
18
- parser: "@typescript-eslint/parser",
19
- parserOptions: {
20
- project: ["tsconfig.json"],
21
- tsconfigRootDir: __dirname,
22
- },
23
- plugins: ["jest", "no-only-tests", "simple-import-sort", "sonarjs"],
24
- rules: {
25
- /**
26
- * Disable the capitalization of comments
27
- * It makes code "not build" when just commented temporarily, which we've
28
- * found to add more friction than the value from having consistent capitalization.
29
- */
30
- "capitalized-comments": "off",
31
- // See https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections
32
- "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
33
- // Too many false positives
34
- "@typescript-eslint/naming-convention": "off",
35
- "security/detect-object-injection": "off",
36
- // Prefer an escape hatch instead of an outright ban
37
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
38
- // Prefer debugging ease over an extra microtask by requiring `return await`.
39
- // `no-return-await` states "This can make debugging more difficult."
40
- "no-return-await": "off",
41
- "@typescript-eslint/return-await": ["error", "always"],
42
- // Prevent bugs
43
- curly: ["error", "all"],
44
- // Recommends using static fields instead of moving to a function
45
- "class-methods-use-this": "off",
46
- // Our libraries don't use ESM
47
- "import/extensions": "off",
48
- "n/no-missing-import": "off",
49
- "n/no-unpublished-import": "off",
50
- "unicorn/prefer-module": "off",
51
- // Rely on `"n/no-extraneous-import"` instead
52
- "import/no-extraneous-dependencies": "off",
53
- // Doesn't play well with NX/monorepos
54
- "import/no-unresolved": "off",
55
- // Prefer named exports
56
- "import/prefer-default-export": "off",
57
- // Allow PascalCase for Decorators
58
- "new-cap": ["warn", { newIsCap: true, capIsNew: false }],
59
- "import/no-cycle": ["error", { ignoreExternal: true, maxDepth: 16 }],
60
- /*
61
- * Don't allow `.only` in tests to prevent it from making it
62
- * into `main` and circumventing our tests.
63
- */
64
- "no-only-tests/no-only-tests": "error",
65
- // Adapter from Airbnb's config, but allows ForOfStatement.
66
- // See https://github.com/airbnb/javascript/blob/0f3ca32323b8d5770de3301036e65511c6d18e00/packages/eslint-config-airbnb-base/rules/style.js#L340-L358
67
- "no-restricted-syntax": [
68
- "error",
69
- {
70
- selector: "ForInStatement",
71
- message: "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
72
- },
73
- {
74
- selector: "LabeledStatement",
75
- message: "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
76
- },
77
- {
78
- selector: "WithStatement",
79
- message: "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
80
- },
81
- ],
82
- // False positive on `enum`s
83
- "no-shadow": "off",
84
- /*
85
- * Only enable for properties. Favor arrow functions, they don’t have a `this` reference,
86
- * preventing accidental usage.
87
- */
88
- "object-shorthand": ["error", "properties"],
89
- // Sort imports and exports
90
- "simple-import-sort/imports": "warn",
91
- "simple-import-sort/exports": "warn",
92
- // "Better readability" is subjective
93
- "unicorn/no-array-for-each": "off",
94
- "unicorn/no-array-reduce": "off",
95
- // Allow common, well understood abbreviations
96
- "unicorn/prevent-abbreviations": [
97
- "error",
98
- { ignore: [/config/i, /ctx/i, /params/i, /props/i, /ref/i] },
100
+
101
+ // False positive on `enum`s
102
+ "no-shadow": "off",
103
+
104
+ /*
105
+ * Only enable for properties. Favor arrow functions, they don’t have a `this` reference,
106
+ * preventing accidental usage.
107
+ */
108
+ "object-shorthand": ["error", "properties"],
109
+
110
+ // Sort imports and exports
111
+ "simple-import-sort/imports": "warn",
112
+ "simple-import-sort/exports": "warn",
113
+
114
+ // "Better readability" is subjective
115
+ "unicorn/no-array-for-each": "off",
116
+ "unicorn/no-array-reduce": "off",
117
+
118
+ // Allow common, well understood abbreviations
119
+ "unicorn/prevent-abbreviations": [
120
+ "error",
121
+ { ignore: [/config/i, /params/i, /props/i, /ref/i] },
122
+ ],
123
+
124
+ // Polarizing naming convention that isn't followed by us
125
+ "no-underscore-dangle": "off",
126
+
127
+ "no-restricted-imports": [
128
+ "error",
129
+ {
130
+ paths: [
131
+ // We want `ObjectId` to be imported from `mongoose` only
132
+ {
133
+ name: "mongodb",
134
+ importNames: ["ObjectId", "ObjectID"],
135
+ message:
136
+ 'Importing `ObjectId` from `mongodb` is not allowed. Use `import { Types } from "mongoose"` and then `Types.ObjectId` instead.',
137
+ },
99
138
  ],
100
- // Polarizing naming convention that isn't followed by us
101
- "no-underscore-dangle": "off",
102
- "no-restricted-imports": [
103
- "error",
104
- {
105
- paths: [
106
- // We want `ObjectId` to be imported from `mongoose` only
107
- {
108
- name: "mongodb",
109
- importNames: ["ObjectId", "ObjectID"],
110
- message: 'Importing `ObjectId` from `mongodb` is not allowed. Use `import { Types } from "mongoose"` and then `Types.ObjectId` instead.',
111
- },
112
- ],
139
+ },
140
+ ],
141
+ },
142
+ overrides: [
143
+ {
144
+ files: [
145
+ "*.spec.ts",
146
+ "*.spec.tsx",
147
+ "*.spec.js",
148
+ "*.spec.jsx",
149
+ "*.test.ts",
150
+ "*.test.tsx",
151
+ "*.test.js",
152
+ "*.test.jsx",
153
+ ],
154
+ rules: {
155
+ // Interferes with `jest`'s `expect.any`
156
+ "@typescript-eslint/no-unsafe-assignment": "off",
157
+
158
+ // Duplication allows verbose test case setups and asserts
159
+ "sonarjs/no-duplicate-string": "off",
160
+ },
161
+ },
162
+ /**
163
+ * Exclude *.dto.ts, null is needed for PATCH endpoints to differentiate empty from optional fields
164
+ * Exclude *.repository.ts, null is needed for our ORMs (prisma and mongoose)
165
+ */
166
+ {
167
+ files: ["**/*.dto.ts", "**/*.repository.ts"],
168
+ rules: {
169
+ "@typescript-eslint/ban-types": [
170
+ "error",
171
+ {
172
+ extendDefaults: true,
173
+ types: {
174
+ null: false,
113
175
  },
176
+ },
114
177
  ],
178
+ },
115
179
  },
116
- overrides: [
117
- {
118
- files: [
119
- "*.spec.ts",
120
- "*.spec.tsx",
121
- "*.spec.js",
122
- "*.spec.jsx",
123
- "*.test.ts",
124
- "*.test.tsx",
125
- "*.test.js",
126
- "*.test.jsx",
127
- ],
128
- rules: {
129
- // Interferes with `jest`'s `expect.any`
130
- "@typescript-eslint/no-unsafe-assignment": "off",
131
- // Duplication allows verbose test case setups and asserts
132
- "sonarjs/no-duplicate-string": "off",
133
- },
134
- },
135
- /**
136
- * Exclude *.dto.ts, null is needed for PATCH endpoints to differentiate empty from optional fields
137
- * Exclude *.repository.ts, null is needed for our ORMs (prisma and mongoose)
138
- */
139
- {
140
- files: ["**/*.dto.ts", "**/*.repository.ts"],
141
- rules: {
142
- "@typescript-eslint/ban-types": [
143
- "error",
144
- {
145
- extendDefaults: true,
146
- types: {
147
- null: false,
148
- },
149
- },
150
- ],
151
- },
152
- },
153
- ],
154
- settings: { node: { version: ">=18.15.0" } },
180
+ ],
181
+ settings: { node: { version: ">=18.15.0" } },
155
182
  };
156
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,188 @@
1
+ import config from ".";
2
+
3
+ describe("eslint-config", () => {
4
+ it("matches", () => {
5
+ expect(config).toEqual({
6
+ extends: [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/eslint-recommended",
9
+ "plugin:@typescript-eslint/recommended",
10
+ "airbnb-base",
11
+ "plugin:eslint-comments/recommended",
12
+ "plugin:jest/recommended",
13
+ "plugin:jest/style",
14
+ "plugin:import/recommended",
15
+ "plugin:n/recommended",
16
+ "plugin:no-use-extend-native/recommended",
17
+ "plugin:security/recommended",
18
+ "plugin:sonarjs/recommended",
19
+ "plugin:unicorn/recommended",
20
+ "xo",
21
+ "xo-typescript/space",
22
+ "prettier",
23
+ ],
24
+ parser: "@typescript-eslint/parser",
25
+ parserOptions: {
26
+ project: ["tsconfig.json"],
27
+ tsconfigRootDir: __dirname,
28
+ },
29
+ plugins: ["jest", "no-only-tests", "simple-import-sort", "sonarjs", "@typescript-eslint"],
30
+ rules: {
31
+ /**
32
+ * Disable the capitalization of comments
33
+ * It makes code "not build" when just commented temporarily, which we've
34
+ * found to add more friction than the value from having consistent capitalization.
35
+ */
36
+ "capitalized-comments": "off",
37
+
38
+ // See https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections
39
+ "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
40
+
41
+ // Too many false positives
42
+ "@typescript-eslint/naming-convention": "off",
43
+ "security/detect-object-injection": "off",
44
+
45
+ // Prefer an escape hatch instead of an outright ban
46
+ "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
47
+
48
+ // Prefer debugging ease over an extra microtask by requiring `return await`.
49
+ // `no-return-await` states "This can make debugging more difficult."
50
+ "no-return-await": "off",
51
+ "@typescript-eslint/return-await": ["error", "always"],
52
+
53
+ // Prevent bugs
54
+ curly: ["error", "all"],
55
+
56
+ // Recommends using static fields instead of moving to a function
57
+ "class-methods-use-this": "off",
58
+
59
+ // Our libraries don't use ESM
60
+ "import/extensions": "off",
61
+ "n/no-missing-import": "off",
62
+ "n/no-unpublished-import": "off",
63
+ "unicorn/prefer-module": "off",
64
+
65
+ // Rely on `"n/no-extraneous-import"` instead
66
+ "import/no-extraneous-dependencies": "off",
67
+
68
+ // Doesn't play well with NX/monorepos
69
+ "import/no-unresolved": "off",
70
+
71
+ // Prefer named exports
72
+ "import/prefer-default-export": "off",
73
+
74
+ // Allow PascalCase for Decorators
75
+ "new-cap": ["warn", { newIsCap: true, capIsNew: false }],
76
+
77
+ "import/no-cycle": ["error", { ignoreExternal: true, maxDepth: 16 }],
78
+ /*
79
+ * Don't allow `.only` in tests to prevent it from making it
80
+ * into `main` and circumventing our tests.
81
+ */
82
+ "no-only-tests/no-only-tests": "error",
83
+
84
+ // Adapter from Airbnb's config, but allows ForOfStatement.
85
+ // See https://github.com/airbnb/javascript/blob/0f3ca32323b8d5770de3301036e65511c6d18e00/packages/eslint-config-airbnb-base/rules/style.js#L340-L358
86
+ "no-restricted-syntax": [
87
+ "error",
88
+ {
89
+ selector: "ForInStatement",
90
+ message:
91
+ "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
92
+ },
93
+ {
94
+ selector: "LabeledStatement",
95
+ message:
96
+ "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
97
+ },
98
+ {
99
+ selector: "WithStatement",
100
+ message:
101
+ "`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
102
+ },
103
+ ],
104
+
105
+ // False positive on `enum`s
106
+ "no-shadow": "off",
107
+
108
+ /*
109
+ * Only enable for properties. Favor arrow functions, they don’t have a `this` reference,
110
+ * preventing accidental usage.
111
+ */
112
+ "object-shorthand": ["error", "properties"],
113
+
114
+ // Sort imports and exports
115
+ "simple-import-sort/imports": "warn",
116
+ "simple-import-sort/exports": "warn",
117
+
118
+ // "Better readability" is subjective
119
+ "unicorn/no-array-for-each": "off",
120
+ "unicorn/no-array-reduce": "off",
121
+
122
+ // Allow common, well understood abbreviations
123
+ "unicorn/prevent-abbreviations": [
124
+ "error",
125
+ { ignore: [/config/i, /params/i, /props/i, /ref/i] },
126
+ ],
127
+
128
+ // Polarizing naming convention that isn't followed by us
129
+ "no-underscore-dangle": "off",
130
+
131
+ "no-restricted-imports": [
132
+ "error",
133
+ {
134
+ paths: [
135
+ // We want `ObjectId` to be imported from `mongoose` only
136
+ {
137
+ name: "mongodb",
138
+ importNames: ["ObjectId", "ObjectID"],
139
+ message:
140
+ 'Importing `ObjectId` from `mongodb` is not allowed. Use `import { Types } from "mongoose"` and then `Types.ObjectId` instead.',
141
+ },
142
+ ],
143
+ },
144
+ ],
145
+ },
146
+ overrides: [
147
+ {
148
+ files: [
149
+ "*.spec.ts",
150
+ "*.spec.tsx",
151
+ "*.spec.js",
152
+ "*.spec.jsx",
153
+ "*.test.ts",
154
+ "*.test.tsx",
155
+ "*.test.js",
156
+ "*.test.jsx",
157
+ ],
158
+ rules: {
159
+ // Interferes with `jest`'s `expect.any`
160
+ "@typescript-eslint/no-unsafe-assignment": "off",
161
+
162
+ // Duplication allows verbose test case setups and asserts
163
+ "sonarjs/no-duplicate-string": "off",
164
+ },
165
+ },
166
+ /**
167
+ * Exclude *.dto.ts, null is needed for PATCH endpoints to differentiate empty from optional fields
168
+ * Exclude *.repository.ts, null is needed for our ORMs (prisma and mongoose)
169
+ */
170
+ {
171
+ files: ["**/*.dto.ts", "**/*.repository.ts"],
172
+ rules: {
173
+ "@typescript-eslint/ban-types": [
174
+ "error",
175
+ {
176
+ extendDefaults: true,
177
+ types: {
178
+ null: false,
179
+ },
180
+ },
181
+ ],
182
+ },
183
+ },
184
+ ],
185
+ settings: { node: { version: ">=18.15.0" } },
186
+ });
187
+ });
188
+ });
package/src/react.js CHANGED
@@ -1,9 +1,7 @@
1
- "use strict";
2
1
  module.exports = {
3
- extends: ["./index", "xo-react/space"],
4
- parserOptions: {
5
- project: ["tsconfig.json"],
6
- tsconfigRootDir: __dirname,
7
- },
2
+ extends: ["./index", "xo-react/space"],
3
+ parserOptions: {
4
+ project: ["tsconfig.json"],
5
+ tsconfigRootDir: __dirname,
6
+ },
8
7
  };
9
- //# sourceMappingURL=react.js.map
@@ -0,0 +1,13 @@
1
+ import config from "./react";
2
+
3
+ describe("eslint-config", () => {
4
+ it("matches", () => {
5
+ expect(config).toEqual({
6
+ extends: ["./index", "xo-react/space"],
7
+ parserOptions: {
8
+ project: ["tsconfig.json"],
9
+ tsconfigRootDir: __dirname,
10
+ },
11
+ });
12
+ });
13
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "outDir": "../../dist/out-tsc"
6
+ },
7
+ "files": [],
8
+ "include": [],
9
+ "references": [
10
+ {
11
+ "path": "./tsconfig.lib.json"
12
+ },
13
+ {
14
+ "path": "./tsconfig.lint.json"
15
+ },
16
+ {
17
+ "path": "./tsconfig.spec.json"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "types": ["node"]
6
+ },
7
+ "include": ["src/**/*.js", "src/**/*.ts"],
8
+ "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"]
5
+ },
6
+ "include": ["."]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"]
5
+ },
6
+ "include": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"]
7
+ }
package/typedoc.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": ["../../typedoc.base.json"],
3
+ "entryPoints": []
4
+ }
package/CHANGELOG.md DELETED
@@ -1,437 +0,0 @@
1
- # Changelog
2
-
3
- This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
-
5
- ## [4.0.8](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.7...eslint-config-4.0.8) (2024-08-05)
6
-
7
- ## [4.0.7](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.6...eslint-config-4.0.7) (2024-07-25)
8
-
9
- ## [4.0.6](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.5...eslint-config-4.0.6) (2024-07-19)
10
-
11
-
12
- ### Bug Fixes
13
-
14
- * one more eslint-config peer dependency ([916b1ac](https://github.com/ClipboardHealth/cbh-core/commit/916b1acd7713590efcedb10397175dbddd4b60e9))
15
-
16
- ## [4.0.5](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.4...eslint-config-4.0.5) (2024-07-19)
17
-
18
-
19
- ### Bug Fixes
20
-
21
- * yet another eslint-config peer dependency ([df74841](https://github.com/ClipboardHealth/cbh-core/commit/df74841ffb4043321dc0c9367444da4f38a59829))
22
-
23
- ## [4.0.4](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.3...eslint-config-4.0.4) (2024-07-19)
24
-
25
-
26
- ### Bug Fixes
27
-
28
- * another eslint-config peer dependency ([4b0a1d6](https://github.com/ClipboardHealth/cbh-core/commit/4b0a1d65a824d5830aab560237cba26f89a1abbe))
29
-
30
- ## [4.0.3](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.2...eslint-config-4.0.3) (2024-07-19)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * eslint-config peer dependency ([35d9920](https://github.com/ClipboardHealth/cbh-core/commit/35d9920c8d36bc72d78df996f6ddf1480e4deb3f))
36
-
37
- ## [4.0.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.1...eslint-config-4.0.2) (2024-07-18)
38
-
39
- ## [4.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-4.0.0...eslint-config-4.0.1) (2024-07-18)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * add build postTarget ([#692](https://github.com/ClipboardHealth/cbh-core/issues/692)) ([3b42efb](https://github.com/ClipboardHealth/cbh-core/commit/3b42efb603572c7a273c8eedd554773c6a364acf))
45
-
46
- ## [4.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.1.2...eslint-config-4.0.0) (2024-07-18)
47
-
48
-
49
- ### ⚠ BREAKING CHANGES
50
-
51
- * upgrade Nx to v18 (#690)
52
-
53
- ### Code Refactoring
54
-
55
- * upgrade Nx to v18 ([#690](https://github.com/ClipboardHealth/cbh-core/issues/690)) ([e6dd982](https://github.com/ClipboardHealth/cbh-core/commit/e6dd982db39022a72dfbf888f707768bae834ccb))
56
-
57
- ## [3.1.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.1.1...eslint-config-3.1.2) (2024-07-12)
58
-
59
- ## [3.1.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.1.1...eslint-config-3.1.2) (2024-07-11)
60
-
61
- ## [3.1.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.1.1...eslint-config-3.1.2) (2024-07-11)
62
-
63
- ## [3.1.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.1.0...eslint-config-3.1.1) (2024-06-12)
64
-
65
- ## [3.1.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.16...eslint-config-3.1.0) (2024-06-11)
66
-
67
-
68
- ### Features
69
-
70
- * Add eslint rule to prevent importing ObjectId from mongodb ([#657](https://github.com/ClipboardHealth/cbh-core/issues/657)) ([8f0be0d](https://github.com/ClipboardHealth/cbh-core/commit/8f0be0d2f8b60cdfc0df77ac8d2009e979da9246))
71
-
72
- ## [3.0.16](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.15...eslint-config-3.0.16) (2024-04-09)
73
-
74
- ## [3.0.15](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.14...eslint-config-3.0.15) (2024-03-07)
75
-
76
- ## [3.0.14](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.13...eslint-config-3.0.14) (2023-11-09)
77
-
78
- ## [3.0.13](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.12...eslint-config-3.0.13) (2023-08-17)
79
-
80
- ## [3.0.12](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.11...eslint-config-3.0.12) (2023-07-17)
81
-
82
- ## [3.0.11](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.10...eslint-config-3.0.11) (2023-07-12)
83
-
84
- ## [3.0.10](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.9...eslint-config-3.0.10) (2023-07-10)
85
-
86
- ## [3.0.9](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.8...eslint-config-3.0.9) (2023-07-07)
87
-
88
- ## [3.0.8](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.7...eslint-config-3.0.8) (2023-07-05)
89
-
90
-
91
- ### Bug Fixes
92
-
93
- * sonarcloud code smells, reduce duplication ([#182](https://github.com/ClipboardHealth/cbh-core/issues/182)) ([5fd9bb6](https://github.com/ClipboardHealth/cbh-core/commit/5fd9bb6c2f79033ac0adaa8168a24835e24abc8b))
94
-
95
- ## [3.0.7](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.6...eslint-config-3.0.7) (2023-06-30)
96
-
97
- ## [3.0.6](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.5...eslint-config-3.0.6) (2023-06-23)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * Prevent NX from modifying package.json ([#158](https://github.com/ClipboardHealth/cbh-core/issues/158)) ([9744a00](https://github.com/ClipboardHealth/cbh-core/commit/9744a0028942aa4cfb61646af9153ab1ef8594a2))
103
-
104
- ## [3.0.5](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.4...eslint-config-3.0.5) (2023-06-20)
105
-
106
- ## [3.0.4](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.3...eslint-config-3.0.4) (2023-06-01)
107
-
108
- ## [3.0.3](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.2...eslint-config-3.0.3) (2023-05-25)
109
-
110
- ## [3.0.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.1...eslint-config-3.0.2) (2023-05-24)
111
-
112
- ## [3.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.0...eslint-config-3.0.1) (2023-05-22)
113
-
114
- ## [3.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.14...eslint-config-3.0.0) (2023-05-20)
115
-
116
-
117
- ### ⚠ BREAKING CHANGES
118
-
119
- * Default eslint-config is strict, xo-react is now react.
120
-
121
- ### Features
122
-
123
- * promote strict ESLint config to default, rename xo-react to react ([2c23dc9](https://github.com/ClipboardHealth/cbh-core/commit/2c23dc9b093fe3946a8be97813e1b9754ea70ade))
124
-
125
- ## [2.4.14](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.13...eslint-config-2.4.14) (2023-05-19)
126
-
127
- ## [2.4.13](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.12...eslint-config-2.4.13) (2023-05-18)
128
-
129
- ## [2.4.12](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.11...eslint-config-2.4.12) (2023-05-17)
130
-
131
- ## [2.4.11](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.10...eslint-config-2.4.11) (2023-05-17)
132
-
133
- ## [2.4.10](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.9...eslint-config-2.4.10) (2023-05-16)
134
-
135
-
136
- ### Bug Fixes
137
-
138
- * drop es-config-prettier to >=6; revert list extends, SonarCloud doesn't support TypeScript 5 ([bbec417](https://github.com/ClipboardHealth/cbh-core/commit/bbec4177dcab4f3de94fbf0c6554677bd72ed05d))
139
-
140
- ## [2.4.9](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.8...eslint-config-2.4.9) (2023-05-16)
141
-
142
-
143
- ### Bug Fixes
144
-
145
- * add missing peerDep ([4e4c68c](https://github.com/ClipboardHealth/cbh-core/commit/4e4c68c46e5bf5ed9e7af65ab0c04b7acfd3072a))
146
-
147
- ## [2.4.8](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.7...eslint-config-2.4.8) (2023-05-16)
148
-
149
- ## [2.4.7](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.6...eslint-config-2.4.7) (2023-05-15)
150
-
151
- ## [2.4.6](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.5...eslint-config-2.4.6) (2023-05-15)
152
-
153
- ## [2.4.5](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.4...eslint-config-2.4.5) (2023-05-14)
154
-
155
- ## [2.4.4](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.3...eslint-config-2.4.4) (2023-05-12)
156
-
157
- ## [2.4.3](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.2...eslint-config-2.4.3) (2023-05-12)
158
-
159
- ## [2.4.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.1...eslint-config-2.4.2) (2023-05-11)
160
-
161
- ## [2.4.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.0...eslint-config-2.4.1) (2023-05-11)
162
-
163
- ## [2.4.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.3.0...eslint-config-2.4.0) (2023-05-09)
164
-
165
-
166
- ### Features
167
-
168
- * add TypeDoc ([#44](https://github.com/ClipboardHealth/cbh-core/issues/44)) ([fd3d1ba](https://github.com/ClipboardHealth/cbh-core/commit/fd3d1ba8f38ef61a47ff8163bd1b21e034016484))
169
-
170
- ## [2.3.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.2...eslint-config-2.3.0) (2023-05-09)
171
-
172
-
173
- ### Features
174
-
175
- * allow `message-producer` clients to pass arbitrary message attributes ([#43](https://github.com/ClipboardHealth/cbh-core/issues/43)) ([2e94876](https://github.com/ClipboardHealth/cbh-core/commit/2e94876e286da9bcf08b0345bd36316538843178))
176
-
177
- ## [2.2.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.1...eslint-config-2.2.2) (2023-04-28)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * enable @typescript-eslint/consistent-type-imports ([2937f19](https://github.com/ClipboardHealth/cbh-core/commit/2937f19d51306374d5fa4f7bbdda8f5a74857896))
183
-
184
- ## [2.2.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.2.0...eslint-config-2.2.1) (2023-04-28)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * ts tests ([d560e82](https://github.com/ClipboardHealth/cbh-core/commit/d560e82adde30430ad72aca087d205771ae86044))
190
-
191
- ## [2.2.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.1.2...eslint-config-2.2.0) (2023-04-27)
192
-
193
-
194
- ### Features
195
-
196
- * add xo-react to eslint config ([#38](https://github.com/ClipboardHealth/cbh-core/issues/38)) ([ae521a1](https://github.com/ClipboardHealth/cbh-core/commit/ae521a1bb0009fc30e5c421a0a3e6fa70154f9eb))
197
-
198
- ## [2.1.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.1.1...eslint-config-2.1.2) (2023-04-26)
199
-
200
- ## [2.1.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.1.0...eslint-config-2.1.1) (2023-04-26)
201
-
202
- ## [2.1.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.0.0...eslint-config-2.1.0) (2023-04-26)
203
-
204
-
205
- ### Features
206
-
207
- * add `message-consumer-nestjs` ([#35](https://github.com/ClipboardHealth/cbh-core/issues/35)) ([806cd88](https://github.com/ClipboardHealth/cbh-core/commit/806cd881caf723a7971f707954e72d8cf346088e))
208
-
209
- ## [2.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.8.2...eslint-config-2.0.0) (2023-04-25)
210
-
211
-
212
- ### ⚠ BREAKING CHANGES
213
-
214
- * eslint-config v1
215
-
216
- ### Features
217
-
218
- * eslint-config v1 ([b27d600](https://github.com/ClipboardHealth/cbh-core/commit/b27d600fe3be687c5ca03cd337cdc592b698fbd9))
219
-
220
- ## [1.8.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.8.1...eslint-config-1.8.2) (2023-04-24)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * gen imports ([1eaef35](https://github.com/ClipboardHealth/cbh-core/commit/1eaef35260ae2595c680a6db3fa03d6d7c5203aa))
226
-
227
- ## [1.8.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.8.0...eslint-config-1.8.1) (2023-04-24)
228
-
229
-
230
- ### Reverts
231
-
232
- * add params back to avoid future breaking changes ([903eb7d](https://github.com/ClipboardHealth/cbh-core/commit/903eb7da5a2750dcf5b6bbcf807cf0d2ce7f281f))
233
-
234
- ## [1.8.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.7.0...eslint-config-1.8.0) (2023-04-24)
235
-
236
-
237
- ### Features
238
-
239
- * add `MessageConsumer` class ([#27](https://github.com/ClipboardHealth/cbh-core/issues/27)) ([91ccd76](https://github.com/ClipboardHealth/cbh-core/commit/91ccd766fcb0607d44ead7eefb6546159ba64fed))
240
-
241
- ## [1.7.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.6.0...eslint-config-1.7.0) (2023-04-24)
242
-
243
-
244
- ### Features
245
-
246
- * use XO ESLint config ([#26](https://github.com/ClipboardHealth/cbh-core/issues/26) ([ae385eb](https://github.com/ClipboardHealth/cbh-core/commit/ae385eb06d02a79f894e2f229731f2cf0aedffbd))
247
-
248
- ## [1.6.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.5.0...eslint-config-1.6.0) (2023-04-24)
249
-
250
-
251
- ### Features
252
-
253
- * Add `MessageProducer` class ([#24](https://github.com/ClipboardHealth/cbh-core/issues/24)) ([6b9ca48](https://github.com/ClipboardHealth/cbh-core/commit/6b9ca4814a7e4e6e9dd876c3a74dc10f018b023b))
254
-
255
- ## [1.5.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.4.0...eslint-config-1.5.0) (2023-04-19)
256
-
257
-
258
- ### Features
259
-
260
- * **DEV-19:** implement `crypto-kms` lib ([#22](https://github.com/ClipboardHealth/cbh-core/issues/22)) ([79a19d3](https://github.com/ClipboardHealth/cbh-core/commit/79a19d30b340b39e792cb5bb7ee01fe178d6bd27))
261
-
262
- ## [1.4.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.3.0...eslint-config-1.4.0) (2023-04-18)
263
-
264
-
265
- ### Features
266
-
267
- * update eslint env to es2022 ([54fecf2](https://github.com/ClipboardHealth/cbh-core/commit/54fecf2ac5eba0e6da760982b42045498c988fa8))
268
-
269
- ## [1.4.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.3.0...eslint-config-1.4.0) (2023-04-18)
270
-
271
-
272
- ### Features
273
-
274
- * update eslint env to es2022 ([54fecf2](https://github.com/ClipboardHealth/cbh-core/commit/54fecf2ac5eba0e6da760982b42045498c988fa8))
275
-
276
- ## [1.3.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.2.1...eslint-config-1.3.0) (2023-04-18)
277
-
278
-
279
- ### Features
280
-
281
- * add no-only-tests eslint rule ([4f4ece1](https://github.com/ClipboardHealth/cbh-core/commit/4f4ece122a0c2fbcb5dc16df5545abcad6c47b00))
282
-
283
-
284
- ### Bug Fixes
285
-
286
- * eslint tests ([989c47a](https://github.com/ClipboardHealth/cbh-core/commit/989c47a7db5d354b48965f77be4b0c398982d513))
287
-
288
- ## [1.2.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.2.0...eslint-config-1.2.1) (2023-04-07)
289
-
290
- ## [1.2.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.1.0...eslint-config-1.2.0) (2023-04-05)
291
-
292
-
293
- ### Features
294
-
295
- * update generate to add new lib to tsconfig.base.json ([6e3a001](https://github.com/ClipboardHealth/cbh-core/commit/6e3a001a54981ab99b2d2da48784ac879b7c5146))
296
-
297
- ## [1.1.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.0.1...eslint-config-1.1.0) (2023-04-04)
298
-
299
-
300
- ### Features
301
-
302
- * add ts:lib generator and update other projects to follow patterns set ([4d0fb40](https://github.com/ClipboardHealth/cbh-core/commit/4d0fb40790a26bab29d4f107c3b22fc9ee0fc3cb))
303
-
304
- ## [1.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-1.0.0...eslint-config-1.0.1) (2023-04-04)
305
-
306
- ## [1.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-0.1.0...eslint-config-1.0.0) (2023-04-04)
307
-
308
- ## [0.1.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-0.0.2...eslint-config-0.1.0) (2023-04-04)
309
-
310
-
311
- ### Features
312
-
313
- * Add Firebase Admin v9 testing package ([#8](https://github.com/ClipboardHealth/cbh-core/issues/8)) ([88b9bc8](https://github.com/ClipboardHealth/cbh-core/commit/88b9bc881f999aa7b8f5d2a86e592561fc4480cd))
314
-
315
- ## [0.1.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-0.0.2...eslint-config-0.1.0) (2023-04-04)
316
-
317
-
318
- ### Features
319
-
320
- * Add Firebase Admin v9 testing package ([#8](https://github.com/ClipboardHealth/cbh-core/issues/8)) ([88b9bc8](https://github.com/ClipboardHealth/cbh-core/commit/88b9bc881f999aa7b8f5d2a86e592561fc4480cd))
321
-
322
- ## [0.0.2](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-0.0.1...eslint-config-0.0.2) (2023-03-30)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * ignore generated changelogs ([959b8e1](https://github.com/ClipboardHealth/cbh-core/commit/959b8e1928c4264ebc5c3d68f020f38dbfa644ac))
328
-
329
- ## 0.0.1 (2023-03-29)
330
-
331
-
332
- ### Features
333
-
334
- * add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
335
- * add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
336
- * initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
337
-
338
-
339
- ### Bug Fixes
340
-
341
- * add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
342
- * boolean for dryRun ([6619256](https://github.com/ClipboardHealth/cbh-core/commit/66192563f99bfe8fc27767e4ca4b53ad10b642f4))
343
- * eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
344
- * github push ([47857e5](https://github.com/ClipboardHealth/cbh-core/commit/47857e51ff6949157d1de25440050743f3d256d5))
345
-
346
- ## 0.1.0 (2023-03-29)
347
-
348
- ### Features
349
-
350
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
351
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
352
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
353
-
354
- ### Bug Fixes
355
-
356
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
357
- - boolean for dryRun ([6619256](https://github.com/ClipboardHealth/cbh-core/commit/66192563f99bfe8fc27767e4ca4b53ad10b642f4))
358
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
359
- - github push ([47857e5](https://github.com/ClipboardHealth/cbh-core/commit/47857e51ff6949157d1de25440050743f3d256d5))
360
-
361
- ## 0.1.0 (2023-03-29)
362
-
363
- ### Features
364
-
365
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
366
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
367
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
368
-
369
- ### Bug Fixes
370
-
371
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
372
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
373
-
374
- ## 0.1.0 (2023-03-29)
375
-
376
- ### Features
377
-
378
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
379
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
380
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
381
-
382
- ### Bug Fixes
383
-
384
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
385
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
386
-
387
- ## 0.1.0 (2023-03-29)
388
-
389
- ### Features
390
-
391
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
392
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
393
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
394
-
395
- ### Bug Fixes
396
-
397
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
398
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
399
-
400
- ## 0.1.0 (2023-03-29)
401
-
402
- ### Features
403
-
404
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
405
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
406
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
407
-
408
- ### Bug Fixes
409
-
410
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
411
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
412
-
413
- ## 0.1.0 (2023-03-29)
414
-
415
- ### Features
416
-
417
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
418
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
419
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
420
-
421
- ### Bug Fixes
422
-
423
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
424
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
425
-
426
- ## 0.1.0 (2023-03-29)
427
-
428
- ### Features
429
-
430
- - add ngx-deploy-npm and @jscutlery/semver to version, release, and publish ([5ebdef7](https://github.com/ClipboardHealth/cbh-core/commit/5ebdef71af9f7dda08d33ec300240f3cd1a16ee9))
431
- - add sharable renovate config ([2adfa3d](https://github.com/ClipboardHealth/cbh-core/commit/2adfa3d72bcf0443e69ff2f9861dc02b13009070))
432
- - initial commit ([162d9e7](https://github.com/ClipboardHealth/cbh-core/commit/162d9e74a6587c9bbe9c7a8003c4b7baf5c53fe7))
433
-
434
- ### Bug Fixes
435
-
436
- - add noVerify ([8f08c45](https://github.com/ClipboardHealth/cbh-core/commit/8f08c458eda7dfd2e1d471b2a8740dcf4264242f))
437
- - eslint config ([bce3458](https://github.com/ClipboardHealth/cbh-core/commit/bce34581d3e15a8feae390b6e48eb050b75b8638))
package/src/index.d.ts DELETED
@@ -1,89 +0,0 @@
1
- declare let _extends: string[];
2
- export { _extends as extends };
3
- export declare let parser: string;
4
- export declare namespace parserOptions {
5
- let project: string[];
6
- let tsconfigRootDir: string;
7
- }
8
- export declare let plugins: string[];
9
- export declare let rules: {
10
- /**
11
- * Disable the capitalization of comments
12
- * It makes code "not build" when just commented temporarily, which we've
13
- * found to add more friction than the value from having consistent capitalization.
14
- */
15
- "capitalized-comments": string;
16
- "@typescript-eslint/consistent-type-definitions": string[];
17
- "@typescript-eslint/naming-convention": string;
18
- "security/detect-object-injection": string;
19
- "@typescript-eslint/no-unused-vars": (string | {
20
- argsIgnorePattern: string;
21
- })[];
22
- "no-return-await": string;
23
- "@typescript-eslint/return-await": string[];
24
- curly: string[];
25
- "class-methods-use-this": string;
26
- "import/extensions": string;
27
- "n/no-missing-import": string;
28
- "n/no-unpublished-import": string;
29
- "unicorn/prefer-module": string;
30
- "import/no-extraneous-dependencies": string;
31
- "import/no-unresolved": string;
32
- "import/prefer-default-export": string;
33
- "new-cap": (string | {
34
- newIsCap: boolean;
35
- capIsNew: boolean;
36
- })[];
37
- "import/no-cycle": (string | {
38
- ignoreExternal: boolean;
39
- maxDepth: number;
40
- })[];
41
- "no-only-tests/no-only-tests": string;
42
- "no-restricted-syntax": (string | {
43
- selector: string;
44
- message: string;
45
- })[];
46
- "no-shadow": string;
47
- "object-shorthand": string[];
48
- "simple-import-sort/imports": string;
49
- "simple-import-sort/exports": string;
50
- "unicorn/no-array-for-each": string;
51
- "unicorn/no-array-reduce": string;
52
- "unicorn/prevent-abbreviations": (string | {
53
- ignore: RegExp[];
54
- })[];
55
- "no-underscore-dangle": string;
56
- "no-restricted-imports": (string | {
57
- paths: {
58
- name: string;
59
- importNames: string[];
60
- message: string;
61
- }[];
62
- })[];
63
- };
64
- export declare let overrides: ({
65
- files: string[];
66
- rules: {
67
- "@typescript-eslint/no-unsafe-assignment": string;
68
- "sonarjs/no-duplicate-string": string;
69
- "@typescript-eslint/ban-types"?: never;
70
- };
71
- } | {
72
- files: string[];
73
- rules: {
74
- "@typescript-eslint/ban-types": (string | {
75
- extendDefaults: boolean;
76
- types: {
77
- null: boolean;
78
- };
79
- })[];
80
- "@typescript-eslint/no-unsafe-assignment"?: never;
81
- "sonarjs/no-duplicate-string"?: never;
82
- };
83
- })[];
84
- export declare namespace settings {
85
- namespace node {
86
- let version: string;
87
- }
88
- }
89
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/index.js"],"names":[],"mappings":";;;;;;;;;IAuBI;;;;OAIG"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/index.js"],"names":[],"mappings":"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"}
package/src/react.d.ts DELETED
@@ -1,7 +0,0 @@
1
- declare let _extends: string[];
2
- export { _extends as extends };
3
- export declare namespace parserOptions {
4
- let project: string[];
5
- let tsconfigRootDir: string;
6
- }
7
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":""}
package/src/react.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/react.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACtC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;CACF,CAAC"}