Skip to content

Commit

Permalink
feat: enable Codacy configuration as code support and public npm pack…
Browse files Browse the repository at this point in the history
…age publishing (#275)

Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick authored Mar 2, 2024
1 parent 46abfcf commit 4a3d23b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["airbnb-typescript", "plugin:prettier/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/jsx-filename-extension": [0],
"import/no-extraneous-dependencies": "off",
"import/extensions": "off"
}
}
2 changes: 1 addition & 1 deletion __tests__/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('End to end tests', () => {
// Arrange: Download a script from the internet
commands.stateCommands(program);
const scriptURL =
'https://raw.githubusercontent.com/hashgraph/hedera-cli/0e724e64f3c95c41ec4a8765e3a58733891328ea/src/commands/script/examples.json';
'https://raw.githubusercontent.com/hashgraph/hedera-cli/main/src/commands/script/examples.json';

// Act
await program.parseAsync([
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"main": "hedera-cli.js",
"target": "esnext",
"module": "esnext",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "npm run format && rimraf --glob 'dist/' && tsc && npm run copy-state && npm run rename-base-state && npm run copy-input",
"clean": "rm -rf dist/ && rm -rf coverage/ && rm -rf junit.xml && rm -rf junit-e2e.xml",
Expand Down

0 comments on commit 4a3d23b

Please sign in to comment.