@rebeccastevens/eslint-config 1.7.3 → 1.7.5

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/dist/modern.cjs CHANGED
@@ -110,7 +110,7 @@ const rules$3 = {
110
110
  "error",
111
111
  "always",
112
112
  {
113
- exceptAfterSingleLine: false,
113
+ exceptAfterSingleLine: true,
114
114
  },
115
115
  ],
116
116
  "max-depth": ["error", 10],
@@ -687,6 +687,9 @@ function mergeRuleSettings(values, utils) {
687
687
  const settings$9 = {
688
688
  plugins: ["eslint-comments"],
689
689
  extends: ["plugin:eslint-comments/recommended"],
690
+ rules: {
691
+ "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
692
+ },
690
693
  };
691
694
 
692
695
  const settings$8 = {
@@ -715,6 +718,7 @@ const settings$8 = {
715
718
  ignoreImmediateMutation: true,
716
719
  },
717
720
  ],
721
+ "functional/no-classes": "off",
718
722
  "functional/no-let": [
719
723
  "error",
720
724
  {
@@ -961,7 +965,11 @@ const settings$6 = {
961
965
  "jsdoc/tag-lines": [
962
966
  "warn",
963
967
  "never",
964
- { noEndLines: true, tags: { example: { lines: "always" } } },
968
+ {
969
+ applyToEndTag: false,
970
+ startLines: 1,
971
+ tags: { example: { lines: "always" } },
972
+ },
965
973
  ],
966
974
  },
967
975
  overrides: [
package/dist/modern.mjs CHANGED
@@ -108,7 +108,7 @@ const rules$3 = {
108
108
  "error",
109
109
  "always",
110
110
  {
111
- exceptAfterSingleLine: false,
111
+ exceptAfterSingleLine: true,
112
112
  },
113
113
  ],
114
114
  "max-depth": ["error", 10],
@@ -685,6 +685,9 @@ function mergeRuleSettings(values, utils) {
685
685
  const settings$9 = {
686
686
  plugins: ["eslint-comments"],
687
687
  extends: ["plugin:eslint-comments/recommended"],
688
+ rules: {
689
+ "eslint-comments/disable-enable-pair": ["error", { allowWholeFile: true }],
690
+ },
688
691
  };
689
692
 
690
693
  const settings$8 = {
@@ -713,6 +716,7 @@ const settings$8 = {
713
716
  ignoreImmediateMutation: true,
714
717
  },
715
718
  ],
719
+ "functional/no-classes": "off",
716
720
  "functional/no-let": [
717
721
  "error",
718
722
  {
@@ -959,7 +963,11 @@ const settings$6 = {
959
963
  "jsdoc/tag-lines": [
960
964
  "warn",
961
965
  "never",
962
- { noEndLines: true, tags: { example: { lines: "always" } } },
966
+ {
967
+ applyToEndTag: false,
968
+ startLines: 1,
969
+ tags: { example: { lines: "always" } },
970
+ },
963
971
  ],
964
972
  },
965
973
  overrides: [
@@ -170,7 +170,7 @@ const settings = {
170
170
  },
171
171
  format: ["camelCase", "PascalCase"],
172
172
  prefix: ["m_", "M_"],
173
- leadingUnderscore: "allow",
173
+ leadingUnderscore: "forbid",
174
174
  trailingUnderscore: "forbid",
175
175
  },
176
176
  {
@@ -183,7 +183,7 @@ const settings = {
183
183
  selector: "variable",
184
184
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
185
185
  prefix: ["m_", "M_"],
186
- leadingUnderscore: "allow",
186
+ leadingUnderscore: "forbid",
187
187
  trailingUnderscore: "forbid",
188
188
  },
189
189
  {
@@ -195,7 +195,7 @@ const settings = {
195
195
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
196
196
  modifiers: ["const"],
197
197
  prefix: ["m_", "M_"],
198
- leadingUnderscore: "allow",
198
+ leadingUnderscore: "forbid",
199
199
  trailingUnderscore: "forbid",
200
200
  },
201
201
  {
@@ -214,7 +214,19 @@ const settings = {
214
214
  selector: "memberLike",
215
215
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
216
216
  prefix: ["m_", "M_"],
217
- leadingUnderscore: "allow",
217
+ leadingUnderscore: "forbid",
218
+ trailingUnderscore: "forbid",
219
+ },
220
+ {
221
+ selector: "memberLike",
222
+ filter: {
223
+ regex: "_[^_]+",
224
+ match: true,
225
+ },
226
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
227
+ modifiers: ["readonly"],
228
+ prefix: ["m_", "M_"],
229
+ leadingUnderscore: "forbid",
218
230
  trailingUnderscore: "forbid",
219
231
  },
220
232
  {
@@ -168,7 +168,7 @@ const settings = {
168
168
  },
169
169
  format: ["camelCase", "PascalCase"],
170
170
  prefix: ["m_", "M_"],
171
- leadingUnderscore: "allow",
171
+ leadingUnderscore: "forbid",
172
172
  trailingUnderscore: "forbid",
173
173
  },
174
174
  {
@@ -181,7 +181,7 @@ const settings = {
181
181
  selector: "variable",
182
182
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
183
183
  prefix: ["m_", "M_"],
184
- leadingUnderscore: "allow",
184
+ leadingUnderscore: "forbid",
185
185
  trailingUnderscore: "forbid",
186
186
  },
187
187
  {
@@ -193,7 +193,7 @@ const settings = {
193
193
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
194
194
  modifiers: ["const"],
195
195
  prefix: ["m_", "M_"],
196
- leadingUnderscore: "allow",
196
+ leadingUnderscore: "forbid",
197
197
  trailingUnderscore: "forbid",
198
198
  },
199
199
  {
@@ -212,7 +212,19 @@ const settings = {
212
212
  selector: "memberLike",
213
213
  format: ["camelCase", "PascalCase", "UPPER_CASE"],
214
214
  prefix: ["m_", "M_"],
215
- leadingUnderscore: "allow",
215
+ leadingUnderscore: "forbid",
216
+ trailingUnderscore: "forbid",
217
+ },
218
+ {
219
+ selector: "memberLike",
220
+ filter: {
221
+ regex: "_[^_]+",
222
+ match: true,
223
+ },
224
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
225
+ modifiers: ["readonly"],
226
+ prefix: ["m_", "M_"],
227
+ leadingUnderscore: "forbid",
216
228
  trailingUnderscore: "forbid",
217
229
  },
218
230
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"
@@ -64,59 +64,59 @@
64
64
  "type-check": "tsc --noEmit"
65
65
  },
66
66
  "dependencies": {
67
- "deepmerge-ts": "^5.0.0"
67
+ "deepmerge-ts": "^5.1.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@commitlint/cli": "17.5.1",
71
- "@commitlint/config-conventional": "17.4.4",
70
+ "@commitlint/cli": "17.6.5",
71
+ "@commitlint/config-conventional": "17.6.5",
72
72
  "@cspell/dict-cryptocurrencies": "3.0.1",
73
- "@rollup/plugin-commonjs": "24.0.1",
74
- "@rollup/plugin-node-resolve": "15.0.1",
75
- "@rollup/plugin-typescript": "11.0.0",
73
+ "@rollup/plugin-commonjs": "25.0.1",
74
+ "@rollup/plugin-node-resolve": "15.1.0",
75
+ "@rollup/plugin-typescript": "11.1.1",
76
76
  "@semantic-release/changelog": "6.0.3",
77
- "@semantic-release/commit-analyzer": "9.0.2",
77
+ "@semantic-release/commit-analyzer": "10.0.1",
78
78
  "@semantic-release/git": "10.0.1",
79
- "@semantic-release/github": "8.0.7",
80
- "@semantic-release/npm": "10.0.2",
81
- "@semantic-release/release-notes-generator": "10.0.3",
82
- "@types/eslint": "8.37.0",
83
- "@types/eslint-config-prettier": "^6.11.0",
84
- "@types/eslint-plugin-prettier": "^3.1.0",
85
- "@types/node": "18.15.11",
79
+ "@semantic-release/github": "9.0.3",
80
+ "@semantic-release/npm": "10.0.4",
81
+ "@semantic-release/release-notes-generator": "11.0.3",
82
+ "@types/eslint": "8.40.2",
83
+ "@types/eslint-config-prettier": "6.11.0",
84
+ "@types/eslint-plugin-prettier": "3.1.0",
85
+ "@types/node": "20.3.1",
86
86
  "@types/rollup-plugin-auto-external": "2.0.2",
87
- "@typescript-eslint/eslint-plugin": "5.57.0",
88
- "@typescript-eslint/parser": "5.57.0",
87
+ "@typescript-eslint/eslint-plugin": "5.59.11",
88
+ "@typescript-eslint/parser": "5.59.11",
89
89
  "commitizen": "4.3.0",
90
90
  "cspell": "6.31.1",
91
91
  "cz-conventional-changelog": "3.3.0",
92
- "eslint": "8.37.0",
92
+ "eslint": "8.42.0",
93
93
  "eslint-config-prettier": "8.8.0",
94
- "eslint-import-resolver-typescript": "3.5.4",
94
+ "eslint-import-resolver-typescript": "3.5.5",
95
95
  "eslint-plugin-eslint-comments": "3.2.0",
96
- "eslint-plugin-functional": "5.0.7",
96
+ "eslint-plugin-functional": "5.0.8",
97
97
  "eslint-plugin-import": "2.27.5",
98
- "eslint-plugin-jsdoc": "40.1.1",
98
+ "eslint-plugin-jsdoc": "46.2.6",
99
99
  "eslint-plugin-markdown": "3.0.0",
100
- "eslint-plugin-n": "15.7.0",
100
+ "eslint-plugin-n": "16.0.0",
101
101
  "eslint-plugin-optimize-regex": "1.2.1",
102
102
  "eslint-plugin-prettier": "4.2.1",
103
103
  "eslint-plugin-promise": "6.1.1",
104
104
  "eslint-plugin-sonarjs": "0.19.0",
105
- "eslint-plugin-unicorn": "46.0.0",
105
+ "eslint-plugin-unicorn": "47.0.0",
106
106
  "husky": "8.0.3",
107
- "knip": "2.4.0",
108
- "lint-staged": "13.2.0",
109
- "markdownlint-cli": "0.33.0",
110
- "prettier": "2.8.7",
107
+ "knip": "2.13.0",
108
+ "lint-staged": "13.2.2",
109
+ "markdownlint-cli": "0.34.0",
110
+ "prettier": "2.8.8",
111
111
  "prettier-plugin-packagejson": "2.4.3",
112
- "rimraf": "4.4.1",
113
- "rollup": "3.20.2",
112
+ "rimraf": "5.0.1",
113
+ "rollup": "3.25.1",
114
114
  "rollup-plugin-auto-external": "2.0.0",
115
- "semantic-release": "21.0.0",
115
+ "semantic-release": "21.0.5",
116
116
  "ts-node": "10.9.1",
117
117
  "tsconfig-paths": "4.2.0",
118
- "tslib": "2.5.0",
119
- "typescript": "5.0.3"
118
+ "tslib": "2.5.3",
119
+ "typescript": "5.1.3"
120
120
  },
121
121
  "peerDependencies": {
122
122
  "@typescript-eslint/eslint-plugin": "*",
@@ -134,7 +134,7 @@
134
134
  "eslint-plugin-sonarjs": "*",
135
135
  "eslint-plugin-unicorn": "*"
136
136
  },
137
- "packageManager": "pnpm@8.0.0",
137
+ "packageManager": "pnpm@8.6.2",
138
138
  "engines": {
139
139
  "node": ">=18.12.1"
140
140
  }