Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Aug 29, 2024
1 parent 72eeaff commit 536b8f5
Show file tree
Hide file tree
Showing 32 changed files with 370 additions and 340 deletions.
17 changes: 10 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
parser: 'babel-eslint',
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
bracketSameLine: false,
},
],

'no-console': [
'error',
{
allow: ['warn', 'error'],
allow: ['warn', 'error', 'log'],
},
],
},
plugins: ['prettier', 'jest', 'jasmine'],
settings: {
ecmascript: 2015,
ecmascript: 2020,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 6,
ecmaVersion: 11,
},
env: {
browser: true,
node: true,
browser: true,
es6: true,
jest: true,
jasmine: true,
'jest/globals': true,
},
globals: {},
globals: {
globalThis: false,
},
};
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/es
/lib
/dist
/coverage
/doc
/node_modules
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
16 changes: 16 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default {
bail: false,
verbose: true,
testEnvironment: 'node',
coverageThreshold: {
global: {
functions: 50,
lines: 50,
statements: 50,
},
},
transform: {},
modulePaths: ['<rootDir>/'],
testMatch: ['<rootDir>/src/**/__tests__/**/*Spec.mjs'],
moduleFileExtensions: ['mjs', 'js', 'jsx', 'ts', 'tsx', 'json', 'node'],
};
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"preversion": "npm test && npm run lint && npm run build",
"version": "npm run changelog && git add CHANGELOG.md",
"postversion": "npm run build && npm run changelog && git push && git push --tags && npm publish",
"lint": "eslint -c ./.eslintrc.js --fix './**/*.{js,jsx}' --ignore-path ./.prettierignore",
"test": "jest --no-watchman",
"build": "rollup -c rollup.config.js",
"lint": "eslint -c ./.eslintrc.js --fix './**/*.{js,jsx,mjs}' --ignore-path ./.prettierignore",
"test": "NODE_OPTIONS=--experimental-vm-modules ./node_modules/.bin/jest --no-watchman -c ./jest.config.mjs",
"build": "rollup -c rollup.config.mjs",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
"commit": "git-cz"
},
Expand Down Expand Up @@ -42,29 +42,29 @@
},
"homepage": "https://github.com/mjancarik/to-aop#readme",
"devDependencies": {
"@babel/core": "^7.15.8",
"@commitlint/cli": "^13.2.0",
"@commitlint/config-conventional": "^13.2.0",
"@babel/core": "^7.25.2",
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.2.4",
"babel-jest": "^29.7.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-preset-env": "^1.7.0",
"commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.1.1",
"commitizen": "^4.3.0",
"conventional-changelog-cli": "^5.0.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.32.0",
"eslint": "^8.56.0",
"eslint-config-last": "^0.0.5",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jasmine": "^4.1.2",
"eslint-plugin-jest": "^24.5.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"husky": "^4.3.4",
"jest": "^27.2.4",
"prettier": "^2.4.1",
"rollup": "^2.58.0"
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jasmine": "^4.2.1",
"eslint-plugin-jest": "^28.8.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"husky": "^9.1.5",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"rollup": "^4.21.1"
},
"jest": {
"bail": false,
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const config = {
input: 'src/main.js',
input: 'src/main.mjs',
output: [
{
file: `./dist/toAop.js`,
Expand Down
Empty file removed setupJest.js
Empty file.
Loading

0 comments on commit 536b8f5

Please sign in to comment.