@jgarber/eslint-config 4.0.0 → 4.1.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 +19 -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,13 @@ 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
+
133
140
  /**
134
141
  * Enforce consistent spacing before function parentheses.
135
142
  *
@@ -158,12 +165,22 @@ export default [
158
165
  "jsdoc/sort-tags": ["warn"],
159
166
 
160
167
  /**
161
- * Enforces lines (or no lines) between tags.
168
+ * Enforce lines (or no lines) between tags.
162
169
  *
163
170
  * @see {@link https://github.com/gajus/eslint-plugin-jsdoc/blob/HEAD/docs/rules/tag-lines.md}
164
171
  */
165
172
  "jsdoc/tag-lines": ["warn", "any", { startLines: 1 }],
166
173
 
174
+ /**
175
+ * Disallow unused variables.
176
+ *
177
+ * @see {@link https://eslint.org/docs/latest/rules/no-unused-vars}
178
+ */
179
+ "no-unused-vars": ["error", {
180
+ argsIgnorePattern: "^_",
181
+ destructuredArrayIgnorePattern: "^_",
182
+ }],
183
+
167
184
  /**
168
185
  * Enforce sorted import declarations within modules.
169
186
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgarber/eslint-config",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "config",