Skip to content

Commit

Permalink
chore: add explicit member accessibility rule and update dependency v…
Browse files Browse the repository at this point in the history
…ersions (#17)
  • Loading branch information
neilcampbell authored Feb 14, 2025
1 parent 8e2c8f0 commit 2d5c61e
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 28 deletions.
17 changes: 8 additions & 9 deletions examples/production/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import globals from 'globals'

export default tseslint.config(
{
languageOptions: {
globals: {
...globals.node,
},
export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended, {
languageOptions: {
globals: {
...globals.node,
},
},
eslint.configs.recommended,
tseslint.configs.recommended,
)
rules: {
'@typescript-eslint/explicit-member-accessibility': 'warn',
},
})
8 changes: 4 additions & 4 deletions examples/production/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.6"
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.16"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^4.0.6",
"@algorandfoundation/algokit-utils": "^8.0.3",
"@algorandfoundation/algokit-utils": "^8.1.0",
"@algorandfoundation/algokit-utils-debug": "^1.0.3",
"@algorandfoundation/puya-ts": "^1.0.0-beta.10",
"@algorandfoundation/puya-ts": "^1.0.0-beta.23",
"@rollup/plugin-typescript": "^12.1.2",
"@tsconfig/node20": "^20.1.4",
"algosdk": "^3.0.0",
Expand All @@ -37,7 +37,7 @@
"typescript-eslint": "^8.19.1",
"prettier": "^3.4.2",
"ts-node-dev": "^2.0.0",
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.8",
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.19",
"vitest": "^2.1.8",
"@vitest/coverage-v8": "^2.1.8",
"typescript": "^5.7.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Contract } from '@algorandfoundation/algorand-typescript'

export class HelloWorld extends Contract {
hello(name: string): string {
public hello(name: string): string {
return `${this.getHello()} ${name}`
}

Expand Down
2 changes: 1 addition & 1 deletion examples/production/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { puyaTsTransformer } from '@algorandfoundation/algorand-typescript-testing/test-transformer'
import { puyaTsTransformer } from '@algorandfoundation/algorand-typescript-testing/vitest-transformer'
import typescript from '@rollup/plugin-typescript'
import { defineConfig } from 'vitest/config'

Expand Down
6 changes: 3 additions & 3 deletions examples/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.6"
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.16"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^4.0.6",
"@algorandfoundation/algokit-utils": "^8.0.3",
"@algorandfoundation/algokit-utils": "^8.1.0",
"@algorandfoundation/algokit-utils-debug": "^1.0.3",
"@algorandfoundation/puya-ts": "^1.0.0-beta.10",
"@algorandfoundation/puya-ts": "^1.0.0-beta.23",
"@rollup/plugin-typescript": "^12.1.2",
"@tsconfig/node20": "^20.1.4",
"algosdk": "^3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Contract } from '@algorandfoundation/algorand-typescript'

export class HelloWorld extends Contract {
hello(name: string): string {
public hello(name: string): string {
return `${this.getHello()} ${name}`
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Contract } from '@algorandfoundation/algorand-typescript'

export class {{ contract_name.split('_')|map('capitalize')|join }} extends Contract {
hello(name: string): string {
public hello(name: string): string {
return `${this.getHello()} ${name}`
}

Expand Down
8 changes: 4 additions & 4 deletions template_content/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.6"
"@algorandfoundation/algorand-typescript": "^1.0.0-beta.16"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^4.0.6",
"@algorandfoundation/algokit-utils": "^8.0.3",
"@algorandfoundation/algokit-utils": "^8.1.0",
"@algorandfoundation/algokit-utils-debug": "^1.0.3",
"@algorandfoundation/puya-ts": "^1.0.0-beta.10",
"@algorandfoundation/puya-ts": "^1.0.0-beta.23",
"@rollup/plugin-typescript": "^12.1.2",
"@tsconfig/node20": "^20.1.4",
"algosdk": "^3.0.0",
Expand All @@ -52,7 +52,7 @@
{%- endif %}
"ts-node-dev": "^2.0.0",
{%- if use_vitest %}
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.8",
"@algorandfoundation/algorand-typescript-testing": "^1.0.0-beta.19",
"vitest": "^2.1.8",
"@vitest/coverage-v8": "^2.1.8",
{%- endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Contract } from '@algorandfoundation/algorand-typescript'

export class {{ contract_name.split('_')|map('capitalize')|join }} extends Contract {
hello(name: string): string {
public hello(name: string): string {
return `${this.getHello()} ${name}`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import tseslint from 'typescript-eslint'
import globals from 'globals'

export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
'@typescript-eslint/explicit-member-accessibility': 'warn',
},
},
eslint.configs.recommended,
tseslint.configs.recommended,
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { puyaTsTransformer } from '@algorandfoundation/algorand-typescript-testing/test-transformer'
import { puyaTsTransformer } from '@algorandfoundation/algorand-typescript-testing/vitest-transformer'
import typescript from '@rollup/plugin-typescript'
import { defineConfig } from 'vitest/config'

Expand Down

0 comments on commit 2d5c61e

Please sign in to comment.