eslint config and required packages
eslint packages/plugins: - vue - typescript - prettier
This commit is contained in:
31
.eslintrc
Normal file
31
.eslintrc
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"parser": "vue-eslint-parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"@typescript-eslint"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"@vue/eslint-config-airbnb",
|
||||||
|
"plugin:vue/recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:prettier/recommended",
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"vue/no-v-model-argument": "off",
|
||||||
|
"no-underscore-dangle": "off",
|
||||||
|
"vue/multi-word-component-names": "off",
|
||||||
|
"no-shadow": "off",
|
||||||
|
"@typescript-eslint/no-shadow": ["error"],
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"import/resolver": {
|
||||||
|
webpack: {
|
||||||
|
config: "./webpack.config.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
31
package.json
31
package.json
@@ -10,14 +10,15 @@
|
|||||||
"postbuild": "cp public/dist/index.html public/index.html",
|
"postbuild": "cp public/dist/index.html public/index.html",
|
||||||
"clean": "rm -r public/dist 2> /dev/null; rm public/index.html 2> /dev/null",
|
"clean": "rm -r public/dist 2> /dev/null; rm public/index.html 2> /dev/null",
|
||||||
"start": "node server.js",
|
"start": "node server.js",
|
||||||
"docs": "documentation build src/api.js -f html -o docs/api && documentation build src/api.js -f md -o docs/api.md"
|
"lint": "eslint src --ext .ts,.vue",
|
||||||
|
"docs": "documentation build src/api.ts -f html -o docs/api && documentation build src/api.ts -f md -o docs/api.md"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chart.js": "^3.9.1",
|
"chart.js": "3.9.1",
|
||||||
"connect-history-api-fallback": "2.0.0",
|
"connect-history-api-fallback": "2.0.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"express": "4.18.1",
|
"express": "4.18.1",
|
||||||
"vue": "^3.2.37",
|
"vue": "3.2.37",
|
||||||
"vue-router": "4.1.3",
|
"vue-router": "4.1.3",
|
||||||
"vuex": "4.0.2"
|
"vuex": "4.0.2"
|
||||||
},
|
},
|
||||||
@@ -26,19 +27,29 @@
|
|||||||
"@babel/plugin-transform-runtime": "7.18.10",
|
"@babel/plugin-transform-runtime": "7.18.10",
|
||||||
"@babel/preset-env": "7.18.10",
|
"@babel/preset-env": "7.18.10",
|
||||||
"@babel/runtime": "7.18.9",
|
"@babel/runtime": "7.18.9",
|
||||||
"@types/node": "^18.6.1",
|
"@types/node": "18.6.1",
|
||||||
"@vue/cli": "^5.0.8",
|
"@typescript-eslint/eslint-plugin": "5.33.0",
|
||||||
"@vue/cli-service": "^5.0.8",
|
"@typescript-eslint/parser": "5.33.0",
|
||||||
|
"@vue/cli": "5.0.8",
|
||||||
|
"@vue/cli-service": "5.0.8",
|
||||||
|
"@vue/eslint-config-airbnb": "6.0.0",
|
||||||
"babel-loader": "8.2.5",
|
"babel-loader": "8.2.5",
|
||||||
"css-loader": "6.7.1",
|
"css-loader": "6.7.1",
|
||||||
"documentation": "^13.2.5",
|
"documentation": "13.2.5",
|
||||||
|
"eslint": "8.21.0",
|
||||||
|
"eslint-config-prettier": "8.5.0",
|
||||||
|
"eslint-plugin-import": "2.26.0",
|
||||||
|
"eslint-plugin-prettier": "4.2.1",
|
||||||
|
"eslint-plugin-vue": "9.3.0",
|
||||||
|
"eslint-plugin-vuejs-accessibility": "1.2.0",
|
||||||
"file-loader": "6.2.0",
|
"file-loader": "6.2.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "5.5.0",
|
||||||
|
"prettier": "2.7.1",
|
||||||
"sass": "1.54.3",
|
"sass": "1.54.3",
|
||||||
"sass-loader": "13.0.2",
|
"sass-loader": "13.0.2",
|
||||||
"terser-webpack-plugin": "5.3.3",
|
"terser-webpack-plugin": "5.3.3",
|
||||||
"ts-loader": "^9.3.1",
|
"ts-loader": "9.3.1",
|
||||||
"typescript": "^4.7.4",
|
"typescript": "4.7.4",
|
||||||
"vue-loader": "17.0.0",
|
"vue-loader": "17.0.0",
|
||||||
"webpack": "5.74.0",
|
"webpack": "5.74.0",
|
||||||
"webpack-cli": "4.10.0",
|
"webpack-cli": "4.10.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user