Skip to content
Permalink
Browse files

typescript package.json and move eslint cfg

typescript libraries added to install list
moved eslint config purely as preference
  • Loading branch information
Bill Rawlinson authored and finalcut committed Feb 21, 2020
1 parent 1aae431 commit 2c7c45c65a6017f8fffa7e833dba1156537598df
Showing with 50 additions and 16 deletions.
  1. +1 −0 .eslintignore
  2. +26 −0 .eslintrc.js
  3. +23 −16 package.json
@@ -0,0 +1 @@
**/src/*.d.ts
@@ -0,0 +1,26 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/recommended',
'@vue/standard',
'@vue/typescript'
],
overrides: [
{
files: ['*.ts', '*.vue'],
rules: {
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }]
}
}
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
@@ -9,31 +9,38 @@
},
"dependencies": {
"core-js": "^3.6.4",
"vue": "^2.6.11"
"vue": "^2.6.11",
"vue-class-component": "^7.1.0",
"vue-i18n": "^8.15.3",
"vue-property-decorator": "^8.3.0",
"vue-router": "^3.1.3",
"webpack": "^4.41.6"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.7.0",
"@typescript-eslint/parser": "^2.7.0",
"@vue/cli-plugin-typescript": "^4.1.1",
"@vue/eslint-config-standard": "^5.0.1",
"@vue/eslint-config-typescript": "^5.0.1",
"@vue/cli-plugin-babel": "^4.2.0",
"@vue/cli-plugin-eslint": "^4.2.0",
"@vue/cli-service": "^4.2.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"node-sass": "^4.13.0",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"typescript": "^3.7.4",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions"

0 comments on commit 2c7c45c

Please sign in to comment.
You can’t perform that action at this time.