Skip to content

Commit

Permalink
chore: deps and tests
Browse files Browse the repository at this point in the history
BREAKING CHANGE: switch to module for release
  • Loading branch information
GiorgioBrux committed Apr 4, 2024
1 parent 4496800 commit 1565e40
Show file tree
Hide file tree
Showing 8 changed files with 14,665 additions and 7,382 deletions.
51 changes: 39 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
{
"extends": ["airbnb-base", "prettier", "plugin:node/recommended", "plugin:jsdoc/recommended"],
"plugins": ["prettier", "@babel", "jsdoc"],
"extends": [
"airbnb-base",
"prettier",
"plugin:jsdoc/recommended"
],
"plugins": [
"prettier",
"@babel",
"jsdoc",
"import" // Helps managing module imports
],
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "off",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off",
"camelcase": "off"
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "off",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": [
"error",
"always" // Encourages use of shorthand syntax where possible
],
"class-methods-use-this": "off",
"camelcase": "off",
"@babel/no-unused-expressions": "warn", // Uses Babel's enhanced checks for unused expressions
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}] // Ensures proper handling of dev dependencies in imports
},
"parser": "@babel/eslint-parser"
}
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false, // Allows parsing without a Babel configuration file for simpler projects
"babelOptions": {
"presets": ["@babel/preset-env"] // Ensures your code is compatible with current JavaScript environments
}
},
"env": {
"es6": true, // Enables ES6 features
"browser": true, // Enables browser global variables
"node": true, // Enables Node.js global variables and Node.js scoping
"jest": true
}
}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/node_modules/
/.idea
/.eslintcache
.env.test
4 changes: 2 additions & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-private-methods"
"@babel/plugin-transform-class-properties",
"@babel/plugin-transform-private-methods"
]
}
1 change: 1 addition & 0 deletions jest.config.integration.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { testMatch: ['**/*.integration.test.js'] };
Loading

0 comments on commit 1565e40

Please sign in to comment.