Skip to content

Commit

Permalink
eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek24 committed May 19, 2024
1 parent f9b2e60 commit e4e9848
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
'env': {
'es6': true,
'node': true,
'node': true
},
'extends': ['eslint:recommended'],
'parserOptions': {
'ecmaVersion': 'latest',
'ecmaVersion': 'latest'
},
'rules': {
'arrow-spacing': ['warn', { before: true, after: true }],
Expand Down Expand Up @@ -44,6 +44,6 @@ module.exports = {
'space-unary-ops': 'error',
'spaced-comment': 'warn',
'wrap-regex': 'error',
'yoda': 'error',
},
'yoda': 'error'
}
};
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ module.exports = {

return MAIN_REGEX.test(email);
},
version,
version
};
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const validEmails = [
'[email protected]',
'[email protected]',
'`[email protected]',
'`[email protected]',
'`[email protected]'
];

const invalidEmails = [
Expand Down Expand Up @@ -93,7 +93,7 @@ const invalidEmails = [
'@gmail.com',
'sdafgi/\\\'jhfdshajikdfs.,/akjlhsdfakjhlfdashjkladf/,.kshkljadsfhkljsda/][][\\]rodweimyrycweomymoencwrtymoeqwcrtymoqrewcfymorecqwmyuor;[email protected]',
'user@[123.123.123.123]',
'ówó@ówó.pl',
'ówó@ówó.pl'
];

const validUnsupported = [
Expand All @@ -103,7 +103,7 @@ const validUnsupported = [
'"[email protected]"@sld.com',
'"\\e\\s\\c\\a\\p\\e\\d"@sld.com',
'bracketed-IP-instead-of-domain@[127.0.0.1]',
'[email protected]',
'[email protected]'
];

describe('Email address validation', () => {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
filename: 'browser.min.js',
path: path.resolve(__dirname, 'dist'),
library: 'emailValidator',
libraryTarget: 'window',
libraryTarget: 'window'
},
devtool: 'source-map',
devtool: 'source-map'
};

0 comments on commit e4e9848

Please sign in to comment.