Skip to content

Commit

Permalink
feat: update dependencies and remove jest plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 31, 2022
1 parent 4eb6377 commit e871e1e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 71 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

module.exports = {
extends: ['./base.js', './jest.js'],
extends: ['./base.js'],
};
58 changes: 0 additions & 58 deletions jest.js

This file was deleted.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"files": [
"base.js",
"index.js",
"jest.js",
"jsdoc.js"
],
"scripts": {
Expand All @@ -25,16 +24,14 @@
"homepage": "https://github.com/cheminfo/eslint-config#readme",
"dependencies": {},
"peerDependencies": {
"eslint": "^8.16.0",
"eslint": "^8.26.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.4.6",
"eslint-plugin-jsdoc": "^39.3.2"
"eslint-plugin-jsdoc": "^39.4.0"
},
"devDependencies": {
"eslint": "8.16.0",
"eslint": "8.26.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "26.4.6",
"eslint-plugin-jsdoc": "39.3.2",
"prettier": "^2.6.2"
"eslint-plugin-jsdoc": "39.4.0",
"prettier": "^2.7.1"
}
}
6 changes: 2 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const { ESLint } = require('eslint');
const eslint = new ESLint({ overrideConfigFile: 'eslintrc.test.yml' });

eslint
.lintFiles(['test/ok.js', 'test/not-ok.js', 'test/jest.test.js'])
.lintFiles(['test/ok.js', 'test/not-ok.js'])
.then((results) => {
const [okResult, notOkResult, jestResult] = results;
const [okResult, notOkResult] = results;

assert.strictEqual(
okResult.errorCount,
Expand Down Expand Up @@ -39,8 +39,6 @@ eslint
'strict',
'wrap-iife',
]);

assert.strictEqual(jestResult.errorCount, 1, util.inspect(jestResult));
})
.catch((error) => {
console.error(error);
Expand Down

0 comments on commit e871e1e

Please sign in to comment.