@wistia/eslint-config 1.2.0 → 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 +12 -0
- package/package.json +1 -1
- package/src/rules/base.mjs +5 -2
- package/test/__snapshots__/javascript.mjs.snap +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#403](https://github.com/wistia/eslint-config/pull/403) [`8f83182`](https://github.com/wistia/eslint-config/commit/8f831828e98b67ac27c4b1742479085b8b56cd8f) Thanks [@okize](https://github.com/okize)! - fix: enable `require-await` for js files
|
|
8
|
+
|
|
9
|
+
## 1.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#401](https://github.com/wistia/eslint-config/pull/401) [`a18bee2`](https://github.com/wistia/eslint-config/commit/a18bee2d31427e889602a06744999722beb826e5) Thanks [@okize](https://github.com/okize)! - fix: adjust `no-unused-vars` rule to be more forgiving
|
|
14
|
+
|
|
3
15
|
## 1.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
package/src/rules/base.mjs
CHANGED
|
@@ -235,10 +235,13 @@ export default {
|
|
|
235
235
|
{
|
|
236
236
|
vars: 'all',
|
|
237
237
|
args: 'after-used',
|
|
238
|
+
argsIgnorePattern: '^_',
|
|
238
239
|
caughtErrors: 'all',
|
|
240
|
+
caughtErrorsIgnorePattern: '^_',
|
|
241
|
+
destructuredArrayIgnorePattern: '^_',
|
|
239
242
|
ignoreRestSiblings: true,
|
|
240
243
|
reportUsedIgnorePattern: false,
|
|
241
|
-
|
|
244
|
+
varsIgnorePattern: '^_',
|
|
242
245
|
},
|
|
243
246
|
],
|
|
244
247
|
|
|
@@ -990,7 +993,7 @@ export default {
|
|
|
990
993
|
|
|
991
994
|
// Disallow async functions which have no await expression
|
|
992
995
|
// https://eslint.org/docs/rules/require-await
|
|
993
|
-
'require-await': '
|
|
996
|
+
'require-await': 'error',
|
|
994
997
|
|
|
995
998
|
// Enforce the use of u or v flag on regular expressions
|
|
996
999
|
// https://eslint.org/docs/rules/require-unicode-regexp
|
|
@@ -1656,9 +1656,12 @@
|
|
|
1656
1656
|
"args": "after-used",
|
|
1657
1657
|
"argsIgnorePattern": "^_",
|
|
1658
1658
|
"caughtErrors": "all",
|
|
1659
|
+
"caughtErrorsIgnorePattern": "^_",
|
|
1660
|
+
"destructuredArrayIgnorePattern": "^_",
|
|
1659
1661
|
"ignoreRestSiblings": true,
|
|
1660
1662
|
"reportUsedIgnorePattern": false,
|
|
1661
1663
|
"vars": "all",
|
|
1664
|
+
"varsIgnorePattern": "^_",
|
|
1662
1665
|
},
|
|
1663
1666
|
],
|
|
1664
1667
|
"no-use-before-define": [
|
|
@@ -1883,7 +1886,7 @@
|
|
|
1883
1886
|
},
|
|
1884
1887
|
],
|
|
1885
1888
|
"require-await": [
|
|
1886
|
-
|
|
1889
|
+
2,
|
|
1887
1890
|
],
|
|
1888
1891
|
"require-unicode-regexp": [
|
|
1889
1892
|
0,
|