Skip to content

Commit

Permalink
Merge pull request #84 from eugene-serb/dev
Browse files Browse the repository at this point in the history
Release 1.0.15
  • Loading branch information
eugene-serb authored Jun 9, 2023
2 parents 9652cdf + d94b4e8 commit f58d68b
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 17 deletions.
13 changes: 7 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
'use strict';

module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
root: true,
env: {
es2022: true,
browser: true,
node: true,
},
extends: ['eslint:recommended'],
extends: ['eslint:recommended', 'prettier'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-unused-vars': 'warn',
},
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
singleQuote: true,
quoteProps: 'as-needed',
trailingComma: 'all',
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
htmlWhitespaceSensitivity: 'strict',
arrowParens: 'always',
};
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

module.exports = {
coverageProvider: 'v8',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/src/$1',
},
moduleFileExtensions: ['js', 'json'],
};
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurora-game-engine",
"version": "1.0.14",
"version": "1.0.15",
"description": "Aurora game engine for creating 1D and 2D games in JavaScript",
"keywords": [
"game-engine",
Expand Down
2 changes: 1 addition & 1 deletion tests/drawer.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Drawer from '../src/drawer.js';
import Drawer from '@/drawer.js';

describe('[Class][Drawer] constructor', () => {
test('Construct without params', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/gameloop.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Gameloop from '../src/gameloop.js';
import Gameloop from '@/gameloop.js';

describe('[Class][Gameloop] create instance', () => {
const gameloop = new Gameloop();
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { getRandomInteger } from '../src/helpers.js';
import { getRandomInteger } from '@/helpers.js';

describe('[Helpers] function getRandomInteger', () => {
test('Call without params', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/map.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Map from '../src/map.js';
import Map from '@/map.js';

const matrix = [
[0, 0, 0],
Expand Down
2 changes: 1 addition & 1 deletion tests/matrix.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Matrix from '../src/matrix.js';
import Matrix from '@/matrix.js';

const matrix = [
[0, 0, 0],
Expand Down
2 changes: 1 addition & 1 deletion tests/score.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Score from '../src/score.js';
import Score from '@/score.js';

describe('[Class][Score] create instance without params', () => {
const score = new Score();
Expand Down
2 changes: 1 addition & 1 deletion tests/timer.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Timer from '../src/timer.js';
import Timer from '@/timer.js';

describe('[Class][Timer] create instance', () => {
const timer = new Timer();
Expand Down

0 comments on commit f58d68b

Please sign in to comment.