Skip to content

Commit

Permalink
Fixed eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbjensen committed May 13, 2024
1 parent ea809d6 commit 4c634aa
Show file tree
Hide file tree
Showing 12 changed files with 262 additions and 88 deletions.
2 changes: 1 addition & 1 deletion bin/rcg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// NPM Dependencies
const path = require('path');
const program = require('commander');
const { program } = require('commander');
const loadConfigFileIfExists = require('../lib/helpers/loadConfigFile');
const {
createExampleConfigFile,
Expand Down
15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const globals = require('globals');
const pluginJs = require('@eslint/js');
const mochaPlugin = require('eslint-plugin-mocha');

module.exports = [
{files: ['**/*.js'], languageOptions: {sourceType: 'commonjs'}},
{languageOptions: { globals: globals.node}},
pluginJs.configs.recommended,
mochaPlugin.configs.flat.recommended,
{
rules: {
'mocha/no-setup-in-describe': 'off',
}
}
];
161 changes: 155 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
"test"
],
"devDependencies": {
"@eslint/js": "^9.2.0",
"eslint": "^9.2.0",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-mocha": "^10.4.3",
"globals": "^15.2.0",
"jsdoc": "^4.0.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
Expand Down
Loading

0 comments on commit 4c634aa

Please sign in to comment.