Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RUN mkdir -p /server/static

COPY /client/package.json /client/package.json
COPY /client/package-lock.json /client/package-lock.json
COPY /client/.npmrc /client/.npmrc
WORKDIR /client
RUN npm ci
COPY /client /client
Expand Down
55 changes: 0 additions & 55 deletions client/.eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion client/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# .npmrc
engine-strict=true
engine-strict=true
legacy-peer-deps=true
78 changes: 78 additions & 0 deletions client/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import js from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
import babelParser from '@babel/eslint-parser';

export default [
{
ignores: [
'**/node_modules/**',
'**/dist/**',
'../server/static/**',
'junit/**',
'*.backup',
],
},
js.configs.recommended,
...pluginVue.configs['flat/vue2-recommended'],
{
files: ['**/*.{js,vue}'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
parser: pluginVue.processors['.vue'].parser,
parserOptions: {
parser: babelParser,
requireConfigFile: false,
ecmaVersion: 12,
sourceType: 'module',
babelOptions: {
presets: ['@babel/preset-env'],
},
},
globals: {
...globals.browser,
...globals.node,
...globals.es2021,
},
},
rules: {
'no-unused-vars': 'off',
'vue/no-unused-vars': 'off',
'no-plusplus': 'off',
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state',
'acc',
'e',
],
}],
'max-len': [
'error',
150,
2,
{
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
},
},
{
files: ['**/*.test.js'],
languageOptions: {
globals: {
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
vi: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
},
},
},
];
Loading
Loading