Skip to content

Commit

Permalink
complete re-scaffold package.json and .eslintrc.js for issue Material…
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Dec 1, 2021
1 parent 6011832 commit b4d1ec8
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 9,672 deletions.
61 changes: 32 additions & 29 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
/* eslint-disable no-undef */
module.exports = {
root: true,
// this section will be used to determine which APIs are available to us
// (i.e are we running in a browser environment or a node.js env)
env: {
//node: true,
browser: true,
},
extends: [
// use the recommended rule set for both plain javascript and vue, this changes warning level
'eslint:recommended',
'plugin:vue/essential',
'plugin:vuetify/base',
//'prettier/vue',
//'plugin:prettier/recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'template-curly-spacing': 'off',
'indent': 'off',
'vue/multi-word-component-names': ['error', {
'ignores': ['Footer', 'Error', 'Calendar', 'Notifications', 'Settings', 'Toasts', 'apexchart', 'Dash']
}]
},
parserOptions: {
parser: '@babel/eslint-parser',
'sourceType': 'module',
'requireConfigFile': false
},
root: true,
// this section will be used to determine which APIs are available to us
// (i.e are we running in a browser environment or a node.js env)
env: {
//node: true,
browser: true,
},
extends: [
// use the recommended rule set for both plain javascript and vue, this changes warning level
// All the "prettier" and "vuetify" linting give errors, possibly due to version mismatches
'plugin:vue/essential',
'eslint:recommended',
// 'plugin:prettier/recommended'
// '@vue/prettier'
// 'plugin:vuetify/base',
//'prettier/vue',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'template-curly-spacing': 'off',
'indent': 'off',
// For later versions
// 'vue/multi-word-component-names': ['error', {
// 'ignores': ['Footer', 'Error', 'Calendar', 'Notifications', 'Settings', 'Toasts', 'apexchart', 'Dash']
// }]
},
parserOptions: {
parser: 'babel-eslint',
'sourceType': 'module',
'requireConfigFile': false
},
}
6 changes: 2 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
presets: [
'@vue/app'
]
}
presets: ["@vue/cli-plugin-babel/preset"],
};
57 changes: 30 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "m-dashboard",
"version": "2.0.0",
"version": "3.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand All @@ -9,47 +9,50 @@
"dev": "npm run serve"
},
"dependencies": {
"@sentry/tracing": "^6.9.0",
"@sentry/vue": "^6.9.0",
"@mdi/font": "^6.5.95",
"@mdi/js": "^6.5.95",
"@sentry/tracing": "^6.15.0",
"@sentry/vue": "^6.15.0",
"apexcharts": "^3.31.0",
"axios": "^0.24.0",
"chartist": "0.11.4",
"eslint-plugin-prettier": "^4.0.0",
"chartist": "^0.11.4",
"core-js": "^3.6.5",
"material-design-icons-iconfont": "^6.1.1",
"sass": "1.43.5",
"nprogress": "^0.2.0",
"secure-ls": "^1.2.6",
"vue": "^2.6.14",
"vue-apexcharts": "^1.6.2",
"vue-chartist": "^2.3.1",
"vue-i18n": "^8.26.7",
"vue-meta": "^2.4.0",
"vue-router": "^3.5.3",
"vuetify": "2.6.0",
"vuetify": "^2.6.0",
"vuex": "^3.6.2",
"vuex-persistedstate": "^4.1.0",
"vuex-router-sync": "^5.0.0"
},
"devDependencies": {
"@mdi/font": "^5.9.55",
"@mdi/js": "^5.9.55",
"@vue/cli-plugin-babel": "^4.5.15",
"@vue/cli-plugin-eslint": "^5.0.0-beta.7",
"@vue/cli-service": "^4.5.15",
"@babel/eslint-parser": "^7.16.3",
"eslint": "8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-vue": "^8.1.1",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0",
"eslint": "~6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-vuetify": "^1.1.0",
"prettier": "^2.3.1",
"prettier": "^2.2.1",
"sass": "~1.32.0",
"sass-loader": "^10.0.0",
"stylus": "^0.54.8",
"stylus-loader": "^6.1.0",
"vue-analytics": "^5.8.0",
"vue-cli-plugin-vuetify": "~2.4.1",
"vue-i18n": "^8.24.4",
"vue-template-compiler": "^2.6.14",
"vuetify-loader": "^1.7.0",
"vuex-persistedstate": "^4.1.0"
}
"vue-cli-plugin-vuetify": "~2.4.4",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.7.3"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
Loading

0 comments on commit b4d1ec8

Please sign in to comment.