Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-escompat

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-escompat - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

lib/index.js
const path = require('path')
const browserslist = require('browserslist')
const {findConfig} = require('browserslist/node')
const {version,homepage} = require('../../package.json')
const {version,homepage} = require('../package.json')
const createRule = (name, browserstring, description, {fixable = null, schema = []} = {}) => {

@@ -49,9 +49,9 @@ module.exports.rules[name] = {

// ES2020
createRule('no-dynamic-import', 'edge > 0, safari < 11, firefox < 67, chrome < 63', 'disallow dynamic import statements')
createRule('no-dynamic-imports', 'edge > 0, safari < 11, firefox < 67, chrome < 63', 'disallow dynamic import statements')
// Proposals...
createRule('no-numeric-separators', 'edge > 0, safari < 13, firefox < 68, chrome < 75', 'disallow use of numeric seperators like 1_000_000')
createRule('no-numeric-separators', 'edge > 0, safari < 13, firefox < 68, chrome < 75', 'disallow use of numeric seperators like 1_000_000', {fixable: true})
createRule('no-public-static-class-fields', 'edge > 0, safari > 0, firefox > 0, chrome < 72', 'disallow public static class fields like foo = 1')
createRule('no-public-instance-class-fields', 'edge > 0, safari > 0, firefox < 69, chrome < 72', 'disallow public class fields like foo = 1')
createRule('no-computed-public-static-class-fields', 'edge > 0, safari > 0, firefox < 69, chrome < 74', 'disallow computed public static or instance class fields like [foo] = 1')
createRule('no-computed-public-class-fields', 'edge > 0, safari > 0, firefox < 69, chrome < 74', 'disallow computed public static or instance class fields like [foo] = 1')
createRule('no-private-class-fields', 'edge > 0, safari > 0, firefox > 0, chrome < 74', 'disallow private class fields like #foo = 1')

@@ -58,0 +58,0 @@ createRule('no-do-expression', 'edge > 0, safari > 0, firefox > 0, chrome > 0', 'disallow "do" expressions')

{
"name": "eslint-plugin-escompat",
"version": "2.1.0",
"version": "2.1.1",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc