@rebeccastevens/eslint-config 1.2.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file. Dates are displayed in UTC.
3
3
 
4
+ ## [1.2.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.2.1...v1.2.2) (2022-01-29)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * **@typescript-eslint/prefer-readonly-parameter-types:** treat methods as readonly ([a0a1af7](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/a0a1af7995dae9cc5bd9697d8c585a275c0118bc))
10
+ * **jsdoc/require-jsdoc:** ensure exported function declaration also require jsdoc ([8d647d1](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/8d647d1096079586041e2a50fce83503effd81ea))
11
+
4
12
  ## [1.2.1](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.2.0...v1.2.1) (2022-01-14)
5
13
 
6
14
 
package/dist/modern.cjs CHANGED
@@ -824,7 +824,8 @@ const settings$6 = {
824
824
  "warn",
825
825
  {
826
826
  contexts: [
827
- ":not(TSDeclareFunction) + FunctionDeclaration",
827
+ ":not(ExportNamedDeclaration) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
828
+ "ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
828
829
  "TSDeclareFunction",
829
830
  "ExportNamedDeclaration > TSTypeAliasDeclaration",
830
831
  "ExportNamedDeclaration > TSInterfaceDeclaration",
package/dist/modern.mjs CHANGED
@@ -822,7 +822,8 @@ const settings$6 = {
822
822
  "warn",
823
823
  {
824
824
  contexts: [
825
- ":not(TSDeclareFunction) + FunctionDeclaration",
825
+ ":not(ExportNamedDeclaration) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
826
+ "ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
826
827
  "TSDeclareFunction",
827
828
  "ExportNamedDeclaration > TSTypeAliasDeclaration",
828
829
  "ExportNamedDeclaration > TSInterfaceDeclaration",
@@ -176,6 +176,7 @@ const settings = {
176
176
  {
177
177
  checkParameterProperties: false,
178
178
  ignoreInferredTypes: true,
179
+ treatMethodsAsReadonly: true,
179
180
  },
180
181
  ],
181
182
  "@typescript-eslint/prefer-regexp-exec": "error",
@@ -174,6 +174,7 @@ const settings = {
174
174
  {
175
175
  checkParameterProperties: false,
176
176
  ignoreInferredTypes: true,
177
+ treatMethodsAsReadonly: true,
177
178
  },
178
179
  ],
179
180
  "@typescript-eslint/prefer-regexp-exec": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"