Skip to content

Commit

Permalink
update dependencies and change to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
James Johnson committed Mar 20, 2021
1 parent 77c0349 commit faeb8e3
Show file tree
Hide file tree
Showing 12 changed files with 5,721 additions and 7,817 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

33 changes: 4 additions & 29 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react"
],
"extends": ["plugin:jest/recommended","airbnb-base"],
"plugins": ["jest"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"jsx-a11y/href-no-hash": ["off"],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"max-len": [
"warn",
{
"code": 80,
"tabWidth": 2,
"comments": 80,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
"jest/globals": true
}
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.test.js → index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ldapjs from 'ldapjs';
import promiseMap from 'p-map';
import config from '../test/fixtures/config.example';
import TestLDAPServer from '../test/fixtures/TestLDAPServer';
import config from './test/fixtures/config.example';
import TestLDAPServer from './test/fixtures/TestLDAPServer';
import SimpleLDAP from '.';

const server = new TestLDAPServer();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import arrayIncludesFunction from './arrayIncludesFunction';
describe('arrayIncludesFunction', () => {
it('is false if function is not in list', () => {
const arr = [1, console.log, 3, () => {}];
const testFn = msg => console.log(msg);
const testFn = (msg) => console.log(msg);
expect(arrayIncludesFunction(arr, testFn)).toBeFalsy();
});

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit faeb8e3

Please sign in to comment.