Skip to content

Commit

Permalink
Update Dependencies and Improve Tests (#128)
Browse files Browse the repository at this point in the history
* Update dependencies

* Adjust test results to reflect parenthesis wrapped function expressions

* Fix issue with eslint imports

* Split modules tests to safe, unsafe, and utils

* Remove redundant code

* Replace regex with slice

* Add missing use case when an object's property is being assigned to

* Fix test to expect the correct result

* Prevent redundancies by using Set instead of Array
  • Loading branch information
BenBaryoPX authored Nov 12, 2024
1 parent 59ecdb1 commit b72ea4b
Show file tree
Hide file tree
Showing 13 changed files with 1,338 additions and 1,010 deletions.
14 changes: 5 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import globals from 'globals';
import js from '@eslint/js';
import path from 'node:path';
import globals from 'globals';
import {fileURLToPath} from 'node:url';
import js from '@eslint/js';
import {FlatCompat} from '@eslint/eslintrc';
import babelParser from "@babel/eslint-parser";

Expand All @@ -10,13 +10,13 @@ const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
allConfig: js.configs.all,
});

export default [
{
ignores: [
'tests/resources',
'tests/resources/',
'**/jquery*.js',
'**/*tmp*.*',
'**/*tmp*/',
Expand All @@ -30,14 +30,10 @@ export default [
parser: babelParser,
parserOptions: {
requireConfigFile: false,
babelOptions: {
plugins: ['@babel/plugin-syntax-import-assertions'],
}
},
globals: {
...globals.browser,
...globals.node,
...globals.commonjs,
...globals.nodeBuiltin,
},
ecmaVersion: 'latest',
sourceType: 'module',
Expand Down
Loading

0 comments on commit b72ea4b

Please sign in to comment.