Commit | Line | Data |
---|---|---|
625022fd BA |
1 | { |
2 | "name": "vchess-client", | |
5b07549c | 3 | "version": "1.0.0", |
625022fd BA |
4 | "private": true, |
5 | "scripts": { | |
6 | "serve": "vue-cli-service serve", | |
7 | "build": "vue-cli-service build", | |
8 | "lint": "vue-cli-service lint" | |
9 | }, | |
10 | "dependencies": { | |
5b07549c BA |
11 | "ajv-keywords": "^3.4.1", |
12 | "vue": "^2.6.11", | |
978fa11c | 13 | "vue-router": "^3.1.6" |
625022fd BA |
14 | }, |
15 | "devDependencies": { | |
978fa11c BA |
16 | "@vue/cli-plugin-eslint": "^4.3.1", |
17 | "@vue/cli-service": "^4.3.1", | |
18 | "ajv": "^6.12.2", | |
21baf444 | 19 | "apply-loader": "^2.0.0", |
978fa11c | 20 | "babel-eslint": "^10.1.0", |
21baf444 BA |
21 | "eslint": "^5.16.0", |
22 | "eslint-plugin-vue": "^5.2.3", | |
23 | "lint-staged": "^8.2.1", | |
2c6cb25e | 24 | "lodash": "^4.17.15", |
978fa11c | 25 | "node-sass": "^4.14.0", |
21baf444 | 26 | "pug": "^2.0.4", |
42eb4eaf | 27 | "pug-loader": "^2.4.0", |
625022fd | 28 | "pug-plain-loader": "^1.0.0", |
98db2082 | 29 | "raw-loader": "^1.0.0", |
5b07549c | 30 | "sass-loader": "^8.0.2", |
57078452 | 31 | "vue-loader": "^15.9.1", |
5b07549c | 32 | "vue-template-compiler": "^2.6.11", |
e2732923 | 33 | "worker-loader": "^2.0.0" |
625022fd BA |
34 | }, |
35 | "eslintConfig": { | |
36 | "root": true, | |
37 | "env": { | |
38 | "node": true | |
39 | }, | |
40 | "extends": [ | |
41 | "plugin:vue/essential", | |
6808d7a1 | 42 | "eslint:recommended" |
625022fd | 43 | ], |
6808d7a1 BA |
44 | "rules": { |
45 | "consistent-return": 2, | |
46 | "indent": [ | |
47 | "error", | |
48 | 2, | |
49 | { | |
50 | "SwitchCase": 1, | |
51 | "VariableDeclarator": "first", | |
52 | "FunctionExpression": { | |
53 | "parameters": "first" | |
54 | }, | |
55 | "CallExpression": { | |
56 | "arguments": "first" | |
57 | }, | |
58 | "flatTernaryExpressions": true | |
59 | } | |
60 | ], | |
910d631b | 61 | "no-else-return": [ |
6808d7a1 BA |
62 | 1, |
63 | { | |
64 | "allowElseIf": false | |
65 | } | |
66 | ], | |
1c5bfdf2 BA |
67 | "semi": [ |
68 | 1, | |
69 | "always" | |
70 | ] | |
71 | }, | |
72 | "parserOptions": { | |
73 | "parser": "babel-eslint" | |
74 | }, | |
75 | "globals": { | |
76 | "V": "readonly" | |
625022fd BA |
77 | } |
78 | }, | |
79 | "postcss": { | |
80 | "plugins": { | |
81 | "autoprefixer": {} | |
82 | } | |
83 | }, | |
84 | "browserslist": [ | |
85 | "> 1%", | |
86 | "last 2 versions", | |
87 | "not ie <= 8" | |
88 | ], | |
89 | "gitHooks": { | |
90 | "pre-commit": "lint-staged" | |
91 | }, | |
92 | "lint-staged": { | |
93 | "*.js": [ | |
94 | "vue-cli-service lint", | |
95 | "git add" | |
96 | ], | |
97 | "*.vue": [ | |
98 | "vue-cli-service lint", | |
99 | "git add" | |
100 | ] | |
101 | } | |
102 | } |