diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..d741523 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,25 @@ +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + jest: true + }, + extends: [ + 'eslint:recommended', + 'plugin:jest/recommended', + 'prettier' + ], + plugins: ['jest'], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module' + }, + rules: { + 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'semi': ['error', 'always'], + 'quotes': ['error', 'single'] + } +}; diff --git a/.gitignore b/.gitignore index 54f107e..e020d5c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,11 +2,21 @@ node_modules/ jspm_packages/ +package-lock.json + # Optional npm cache directory .npm +# IntelliJ IDEA - ignore user-specific files, but keep shared configurations +.idea/workspace.xml +.idea/tasks.xml +.idea/usage.statistics.xml +.idea/dictionaries +.idea/shelf +*.iws + + # Editor directories and files -.idea/ .vscode/ *.swp *.swo @@ -17,4 +27,14 @@ jspm_packages/ npm-debug.log* yarn-debug.log* yarn-error.log* -lerna-debug.log* \ No newline at end of file +lerna-debug.log* + +# Local DokuWiki instance data +/dokuwiki-test/ +# DokuWiki development environment data +/dokuwiki-dev/data/ + +# Keep Docker Compose files and scripts +!/dokuwiki-dev/docker-compose.yml +!/dokuwiki-dev/start.sh +!/dokuwiki-dev/stop.sh diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/jsLinters/eslint.xml b/.idea/jsLinters/eslint.xml new file mode 100644 index 0000000..541945b --- /dev/null +++ b/.idea/jsLinters/eslint.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Format.xml b/.idea/runConfigurations/Format.xml new file mode 100644 index 0000000..946f564 --- /dev/null +++ b/.idea/runConfigurations/Format.xml @@ -0,0 +1,12 @@ + + + + + +