eslint-plugin-escompat
Advanced tools
Comparing version 2.1.0 to 2.1.1
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": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12580