1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Re-factor how the ESLint no-var rule is enabled in the src/ folder

This simplifies/consolidates the ESLint configuration slightly in the `src/` folder, and prevents the addition of any new files where `var` is being used.[1]
Hence we no longer need to manually add `/* eslint no-var: error */` in files, which is easy to forget, and can instead disable the rule in the `src/core/` files where `var` is still in use.

---
[1] Obviously the `no-var` rule can, in the same way as every other rule, be disabled on a case-by-case basis where actually necessary.
This commit is contained in:
Jonas Jenwald 2020-10-03 12:26:25 +02:00
parent 48e27a1a22
commit 9416b14e8b
39 changed files with 25 additions and 26 deletions

View file

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error */
import { FormatError, shadow } from "../shared/util.js";
import { EOF } from "./primitives.js";