Skip to content

Commit

Permalink
fix: fixed eslint and babel parser
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jul 31, 2023
1 parent 4d4d659 commit 1ae8e7e
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 29 deletions.
9 changes: 9 additions & 0 deletions .dist.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"extends": ["eslint:recommended"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"babelrc": false,
"configFile": false,
"presets": ["@babel/preset-env"]
}
},
"env": {
"node": false,
"browser": true,
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)
Copyright (c) 2020 Forward Email LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/niftylettuce/email-regex-safe.svg)](LICENSE)
[![license](https://img.shields.io/github/license/spamscanner/email-regex-safe.svg)](LICENSE)
[![npm downloads](https://img.shields.io/npm/dt/email-regex-safe.svg)](https://npm.im/email-regex-safe)

> Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to [email-regex][]. Works in Node v14+ and browsers. **Made for [Spam Scanner][spam-scanner] and [Forward Email][forward-email]**
Expand Down Expand Up @@ -117,14 +117,14 @@ Since we cannot use regular expression's "negative lookbehinds" functionality (d

## Contributors

| Name | Website |
| -------------- | -------------------------- |
| **Nick Baugh** | <http://niftylettuce.com/> |
| Name | Website |
| ----------------- | -------------------------- |
| **Forward Email** | <https://forwardemail.net> |


## License

[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)
[MIT](LICENSE) © [Forward Email](https://forwardemail.net)


##
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
"name": "email-regex-safe",
"description": "Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to email-regex. Works in Node v14+ and browsers. Made for Spam Scanner and Forward Email.",
"version": "2.0.1",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
"author": "Forward Email (https://forwardemail.net)",
"browser": {
"re2": false
},
"bugs": {
"url": "https://github.com/niftylettuce/email-regex-safe/issues",
"email": "niftylettuce@gmail.com"
"url": "https://github.com/spamscanner/email-regex-safe/issues"
},
"contributors": [
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
"Forward Email (https://forwardemail.net)"
],
"dependencies": {
"ip-regex": "4",
"tlds": "^1.231.0"
"tlds": "^1.240.0"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@babel/cli": "^7.22.9",
"@babel/core": "^7.22.9",
"@babel/eslint-parser": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"ava": "^4.3.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.18.0",
"eslint": "^8.46.0",
"eslint-config-xo-lass": "^2.0.1",
"eslint-plugin-compat": "^4.0.2",
"eslint-plugin-compat": "^4.1.4",
"eslint-plugin-node": "^11.1.0",
"fixpack": "^4.0.0",
"husky": "^8.0.1",
"husky": "^8.0.3",
"jsdom": "15",
"lint-staged": "^13.0.3",
"lint-staged": "^13.2.3",
"nyc": "^15.1.0",
"re2": "^1.17.7",
"re2": "^1.20.1",
"remark-cli": "^11.0.0",
"remark-preset-github": "^4.0.4",
"rimraf": "^3.0.2",
"tinyify": "^3.1.0",
"xo": "^0.50.0"
"xo": "^0.55.0"
},
"engines": {
"node": ">=14"
Expand All @@ -50,7 +50,7 @@
"lib",
"dist"
],
"homepage": "https://github.com/niftylettuce/email-regex-safe",
"homepage": "https://github.com/spamscanner/email-regex-safe",
"jsdelivr": "dist/email-regex-safe.min.js",
"keywords": [
"2020",
Expand Down Expand Up @@ -106,7 +106,7 @@
"license": "MIT",
"main": "lib/index.js",
"peerDependencies": {
"re2": "^1.17.2"
"re2": "^1.20.1"
},
"peerDependenciesMeta": {
"re2": {
Expand All @@ -115,7 +115,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/niftylettuce/email-regex-safe"
"url": "https://github.com/spamscanner/email-regex-safe"
},
"scripts": {
"browserify": "browserify src/index.js -o dist/email-regex-safe.js -s emailRegexSafe -g [ babelify --configFile ./.dist.babelrc ]",
Expand Down
6 changes: 3 additions & 3 deletions test/browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
const { readFileSync } = require('fs');
const { Script } = require('vm');
const path = require('node:path');
const { readFileSync } = require('node:fs');
const { Script } = require('node:vm');
const test = require('ava');
const { JSDOM, VirtualConsole } = require('jsdom');

Expand Down
1 change: 0 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const test = require('ava');

const emailRegexSafe = require('..');

const string = `
Expand Down

0 comments on commit 1ae8e7e

Please sign in to comment.