Skip to content

Commit

Permalink
refactor: switch from commonjs to module
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgioBrux committed Apr 4, 2024
1 parent 5b5ec45 commit f7c5b83
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 305 deletions.
22 changes: 11 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"extends": ["eslint:recommended", "plugin:node/recommended", "prettier"],
"plugins": ["prettier"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"babelOptions": {
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-syntax-import-assertions"]
}
},
"extends": ["eslint:recommended", "prettier"],
"plugins": ["prettier"],
"env": {
"node": true,
"es2021": true
},
"rules": {
"prettier/prettier": ["error", {
"endOfLine": "auto"
}],
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"no-unused-vars": "warn",
"no-console": "off",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": ["error", "always"],
"class-methods-use-this": "off",
"camelcase": "off",
"node/no-unsupported-features/es-syntax": ["error", {
"version": ">=20.0.0",
"ignores": []
}]
"camelcase": "off"
}
}

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
export default { extends: ["@commitlint/config-conventional"] };
Loading

0 comments on commit f7c5b83

Please sign in to comment.