Skip to content

Commit 7ac28e6

Browse files
authored
Merge pull request #22 from ElderMatt/updating-packages
chore: updated packages and node version
2 parents 8fc81f8 + d41d5ef commit 7ac28e6

9 files changed

Lines changed: 15396 additions & 6527 deletions

File tree

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
node_packages/
1+
.history
2+
3+
node_modules
4+
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
9+
.env
10+
!.env.sample

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll": true
3+
"source.fixAll": "explicit"
44
},
55
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
66
"editor.formatOnPaste": false,

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use the official lightweight Node.js image.
22
# https://hub.docker.com/_/node
3-
FROM node:22.21.0-alpine3.21 AS ci
3+
FROM node:22.21.1-alpine AS ci
44

55
# Create and change to the app directory.
66
WORKDIR /usr/src/app
@@ -16,7 +16,7 @@ COPY . ./
1616

1717
RUN npm test
1818

19-
FROM node:22.21.0-alpine3.21 AS prod
19+
FROM node:22.21.1-alpine AS prod
2020

2121
COPY package*.json ./
2222

eslint.config.mjs

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import js from '@eslint/js'
2+
import importPlugin from 'eslint-plugin-import'
3+
import prettierPlugin from 'eslint-plugin-prettier'
4+
import prettierConfig from 'eslint-config-prettier'
5+
import chaiFriendly from 'eslint-plugin-chai-friendly'
6+
7+
export default [
8+
js.configs.recommended,
9+
{
10+
files: ['**/*.js'],
11+
plugins: {
12+
import: importPlugin,
13+
prettier: prettierPlugin,
14+
'chai-friendly': chaiFriendly,
15+
},
16+
languageOptions: {
17+
ecmaVersion: 9,
18+
sourceType: 'module',
19+
globals: {
20+
// Node.js globals
21+
process: 'readonly',
22+
__dirname: 'readonly',
23+
__filename: 'readonly',
24+
require: 'readonly',
25+
module: 'readonly',
26+
exports: 'writable',
27+
console: 'readonly',
28+
Buffer: 'readonly',
29+
30+
// Mocha globals
31+
describe: 'readonly',
32+
it: 'readonly',
33+
before: 'readonly',
34+
after: 'readonly',
35+
beforeEach: 'readonly',
36+
afterEach: 'readonly',
37+
},
38+
},
39+
settings: {
40+
'import/resolver': {
41+
node: {
42+
extensions: ['.js'],
43+
},
44+
},
45+
},
46+
rules: {
47+
...prettierConfig.rules,
48+
'import/no-extraneous-dependencies': 'off',
49+
'eol-last': ['error', 'always'],
50+
'import/extensions': 'off',
51+
'no-shadow': 0,
52+
'no-unused-vars': 0,
53+
'prefer-destructuring': 0,
54+
},
55+
},
56+
{
57+
ignores: [
58+
'node_modules/',
59+
'coverage/',
60+
'dist/',
61+
'.history/',
62+
'.vscode/',
63+
],
64+
},
65+
]

0 commit comments

Comments
 (0)