weboptimizer 2.0.1135 → 2.0.1138

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/package.json +24 -1
  2. package/type.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1135",
3
+ "version": "2.0.1138",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -1764,6 +1764,21 @@
1764
1764
  ],
1765
1765
  "rules": {
1766
1766
  "@typescript-eslint/no-non-null-assertion": 0,
1767
+ "@typescript-eslint/no-this-alias": [
1768
+ "error",
1769
+ {
1770
+ "allowedNames": [
1771
+ "self"
1772
+ ]
1773
+ }
1774
+ ],
1775
+ "@typescript-eslint/no-unused-vars": [
1776
+ "error",
1777
+ {
1778
+ "argsIgnorePattern": "^_",
1779
+ "varsIgnorePattern": "^_"
1780
+ }
1781
+ ],
1767
1782
  "@typescript-eslint/type-annotation-spacing": [
1768
1783
  "error",
1769
1784
  {
@@ -1808,6 +1823,14 @@
1808
1823
  10
1809
1824
  ],
1810
1825
  "no-invalid-this": 0,
1826
+ "no-this-assignment": [
1827
+ true,
1828
+ {
1829
+ "allowed-names": [
1830
+ "^self$"
1831
+ ]
1832
+ }
1833
+ ],
1811
1834
  "no-unused-vars": [
1812
1835
  "error",
1813
1836
  {
package/type.d.ts CHANGED
@@ -36,7 +36,7 @@ export interface PackageDescriptor {
36
36
  }
37
37
  export declare type Replacements = Mapping<SecondParameter<string['replace']>>;
38
38
  export declare type Resolvable = {
39
- [K in '__evaluate__' | '__execute__' | string]: Resolvable | string | unknown;
39
+ [_K in '__evaluate__' | '__execute__' | string]: Resolvable | string | unknown;
40
40
  };
41
41
  export interface RedundantRequest {
42
42
  path: string;