@jgarber/eslint-config 4.0.0 → 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.
Files changed (2) hide show
  1. package/index.js +27 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -103,7 +103,7 @@ export default [
103
103
  "@stylistic/linebreak-style": "warn",
104
104
 
105
105
  /**
106
- * Enforces a maximum line length to increase code readability and
106
+ * Enforce a maximum line length to increase code readability and
107
107
  * maintainability.
108
108
  *
109
109
  * @see {@link https://eslint.style/rules/default/max-len}
@@ -130,6 +130,21 @@ export default [
130
130
  */
131
131
  "@stylistic/no-confusing-arrow": "warn",
132
132
 
133
+ /**
134
+ * Enforce a consistent linebreak style for operators.
135
+ *
136
+ * @see {@link https://eslint.style/rules/default/operator-linebreak}
137
+ */
138
+ "@stylistic/operator-linebreak": ["error", "after"],
139
+
140
+ /**
141
+ * Disallow quotes around object literal property names that are not
142
+ * strictly required.
143
+ *
144
+ * @see {@link https://eslint.style/rules/default/quote-props}
145
+ */
146
+ "@stylistic/quote-props": ["error", "as-needed"],
147
+
133
148
  /**
134
149
  * Enforce consistent spacing before function parentheses.
135
150
  *
@@ -158,12 +173,22 @@ export default [
158
173
  "jsdoc/sort-tags": ["warn"],
159
174
 
160
175
  /**
161
- * Enforces lines (or no lines) between tags.
176
+ * Enforce lines (or no lines) between tags.
162
177
  *
163
178
  * @see {@link https://github.com/gajus/eslint-plugin-jsdoc/blob/HEAD/docs/rules/tag-lines.md}
164
179
  */
165
180
  "jsdoc/tag-lines": ["warn", "any", { startLines: 1 }],
166
181
 
182
+ /**
183
+ * Disallow unused variables.
184
+ *
185
+ * @see {@link https://eslint.org/docs/latest/rules/no-unused-vars}
186
+ */
187
+ "no-unused-vars": ["error", {
188
+ argsIgnorePattern: "^_",
189
+ destructuredArrayIgnorePattern: "^_",
190
+ }],
191
+
167
192
  /**
168
193
  * Enforce sorted import declarations within modules.
169
194
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgarber/eslint-config",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "config",