Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HaQmUser committed Jan 17, 2025
2 parents fc5f0da + ff79d71 commit 89ad09f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
12 changes: 10 additions & 2 deletions rpgsaga/saga/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,20 @@ export default [{
"@typescript-eslint/naming-convention": ["error", {
selector: "default",
format: ["camelCase"],
}, {
},
{
selector: ["memberLike"],
modifiers: ["private"],
format: ["camelCase"],
leadingUnderscore: "allow",
}, {
},
{
selector: ["memberLike"],
modifiers: ["protected"],
format: ["camelCase"],
leadingUnderscore: "allow",
},
{
selector: ["enumMember", "variable"],
format: ["camelCase", "PascalCase", "UPPER_CASE"],
}, {
Expand Down
12 changes: 6 additions & 6 deletions rpgsaga/saga/src/SuperClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Parrot } from './Classes/ParrotClass';
import { Rabbit } from './Classes/RabbitClass';

const animals: Animal[] = [new Parrot('Kez', 2, 'Blue', 'female', 10), new Rabbit('Nastya', 3, 'Brown', 'male', 1.5)];
export function animalsOutput() {
animals.forEach(animal => {
console.log(animal.toString());
console.log(animal.sound());
});
}
export function animalsOutput(){
animals.forEach(animal => {
console.log(animal.toString());
console.log(animal.sound());
});
}
8 changes: 2 additions & 6 deletions rpgsaga/saga/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { animalsOutput } from './SuperClass';
import { Tournament } from './rpg_saga/Tournament';

import { animalsOutput } from "./SuperClass";
console.log('Hello world');

animalsOutput();
const battle = new Tournament();
battle.duel();
animalsOutput()

0 comments on commit 89ad09f

Please sign in to comment.