Skip to content

Commit

Permalink
huge refactoring, first working set
Browse files Browse the repository at this point in the history
  • Loading branch information
dariosalvi78 committed Aug 24, 2022
1 parent 4afacac commit 3958fc7
Show file tree
Hide file tree
Showing 74 changed files with 18,592 additions and 14,808 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

Empty file modified .editorconfig
100755 → 100644
Empty file.
4 changes: 3 additions & 1 deletion .eslintignore
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
/src-capacitor
/src-cordova
/.quasar
/node_modules
/node_modules
.eslintrc.js
babel.config.js
39 changes: 23 additions & 16 deletions .eslintrc.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,62 @@ module.exports = {
root: true,

parserOptions: {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module' // Allows for the use of imports
},

env: {
browser: true
browser: true,
'vue/setup-compiler-macros': true
},

// Rules order is important, please avoid shuffling them
extends: [
// Base ESLint recommended rules
// 'eslint:recommended',


// Uncomment any of the lines below to choose desired strictness,
// but leave only one uncommented!
// See https://eslint.vuejs.org/rules/#available-rules
'plugin:vue/essential', // Priority A: Essential (Error Prevention)
// 'plugin:vue/strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
// 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)

'standard'

],

plugins: [
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-file
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
// required to lint *.vue files
'vue',

],

globals: {
ga: true, // Google Analytics
cordova: true,
__statics: true,
process: true,
Capacitor: true,
chrome: true
ga: 'readonly', // Google Analytics
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly'
},

// add your custom rules here
rules: {

// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
'arrow-parens': 'off',
'one-var': 'off',
'no-void': 'off',
'multiline-ternary': 'off',

'import/first': 'off',
'import/named': 'error',
Expand All @@ -63,9 +70,9 @@ module.exports = {
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',

'prefer-promise-reject-errors': 'off',


// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
Expand Down
Empty file modified .gitignore
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17
16.17
1 change: 1 addition & 0 deletions .postcssrc.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
Expand Down
35 changes: 0 additions & 35 deletions .stylintrc

This file was deleted.

14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"vue.volar",
"wayou.vscode-todo-highlight"
],
"unwantedRecommendations": [
"octref.vetur",
"hookyqr.beautify",
"dbaeumer.jshint",
"ms-vscode.vscode-typescript-tslint-plugin"
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": [
"source.fixAll.eslint"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"vue"
]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.17 as build
FROM node:16.17.0 as build

# install python (needed by some dev deps)
#RUN apk add --no-cache --virtual .gyp \
Expand Down
Empty file modified README.md
100755 → 100644
Empty file.
28 changes: 12 additions & 16 deletions babel.config.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/* eslint-env node */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const fs = require('fs-extra');
let extend = undefined;
/* eslint-disable */

/**
* The .babelrc file has been created to assist Jest for transpiling.
* You should keep your application's babel rules in this file.
*/

if (fs.existsSync('./.babelrc')) {
extend = './.babelrc';
module.exports = api => {
return {
presets: [
[
'@quasar/babel-preset-app',
api.caller(caller => caller && caller.target === 'node')
? { targets: { node: 'current' } }
: {}
]
]
}
}

module.exports = {
presets: ['@quasar/babel-preset-app'],
extends: extend,
};
58 changes: 0 additions & 58 deletions jest.config.js

This file was deleted.

5 changes: 4 additions & 1 deletion jsconfig.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
"boot/*": [
"src/boot/*"
],
"stores/*": [
"src/stores/*"
],
"vue$": [
"node_modules/vue/dist/vue.esm.js"
"node_modules/vue/dist/vue.runtime.esm-bundler.js"
]
}
},
Expand Down
Loading

0 comments on commit 3958fc7

Please sign in to comment.