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": { | |
8b3b2151 BA |
11 | "ajv-keywords": "^3.5.2", |
12 | "vue": "^2.6.12", | |
13 | "vue-router": "^3.4.9" | |
625022fd BA |
14 | }, |
15 | "devDependencies": { | |
70c9745d BA |
16 | "@vue/cli-plugin-eslint": "^4.5.9", |
17 | "@vue/cli-service": "^4.5.9", | |
8b3b2151 | 18 | "ajv": "^6.12.6", |
21baf444 | 19 | "apply-loader": "^2.0.0", |
978fa11c | 20 | "babel-eslint": "^10.1.0", |
6dd135be | 21 | "eslint": "^6.8.0", |
4c1fea47 BA |
22 | "eslint-plugin-vue": "^7.2.0", |
23 | "lint-staged": "^10.5.3", | |
8b3b2151 BA |
24 | "lodash": "^4.17.20", |
25 | "node-sass": "^5.0.0", | |
4c1fea47 | 26 | "pug": "^2.0.4", |
42eb4eaf | 27 | "pug-loader": "^2.4.0", |
625022fd | 28 | "pug-plain-loader": "^1.0.0", |
8b3b2151 BA |
29 | "raw-loader": "^4.0.2", |
30 | "sass-loader": "^10.1.0", | |
31 | "vue-loader": "^15.9.5", | |
32 | "vue-template-compiler": "^2.6.12", | |
4c1fea47 | 33 | "worker-loader": "^3.0.6" |
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 | } |