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 | 11 | "ajv-keywords": "^3.5.2", |
be4b9421 | 12 | "vue": "^2.6.11", |
8b3b2151 | 13 | "vue-router": "^3.4.9" |
625022fd BA |
14 | }, |
15 | "devDependencies": { | |
70c9745d | 16 | "@vue/cli-plugin-eslint": "^4.5.9", |
be4b9421 | 17 | "@vue/cli-service": "^3.0.5", |
8b3b2151 | 18 | "ajv": "^6.12.6", |
21baf444 | 19 | "apply-loader": "^2.0.0", |
978fa11c | 20 | "babel-eslint": "^10.1.0", |
e8ea1e35 | 21 | "chokidar": "^3.5.1", |
6dd135be | 22 | "eslint": "^6.8.0", |
4c1fea47 BA |
23 | "eslint-plugin-vue": "^7.2.0", |
24 | "lint-staged": "^10.5.3", | |
8b3b2151 | 25 | "lodash": "^4.17.20", |
e8ea1e35 | 26 | "pug": "^3.0.2", |
be4b9421 | 27 | "pug-loader": "^1.0.2", |
e8ea1e35 | 28 | "pug-plain-loader": "^1.1.0", |
8b3b2151 | 29 | "raw-loader": "^4.0.2", |
be4b9421 | 30 | "sass": "^1.32.12", |
8b3b2151 | 31 | "sass-loader": "^10.1.0", |
be4b9421 BA |
32 | "vue-loader": "^15.9.6", |
33 | "vue-template-compiler": "^2.6.11", | |
4c1fea47 | 34 | "worker-loader": "^3.0.6" |
625022fd BA |
35 | }, |
36 | "eslintConfig": { | |
37 | "root": true, | |
38 | "env": { | |
39 | "node": true | |
40 | }, | |
41 | "extends": [ | |
42 | "plugin:vue/essential", | |
6808d7a1 | 43 | "eslint:recommended" |
625022fd | 44 | ], |
6808d7a1 BA |
45 | "rules": { |
46 | "consistent-return": 2, | |
47 | "indent": [ | |
48 | "error", | |
49 | 2, | |
50 | { | |
51 | "SwitchCase": 1, | |
52 | "VariableDeclarator": "first", | |
53 | "FunctionExpression": { | |
54 | "parameters": "first" | |
55 | }, | |
56 | "CallExpression": { | |
57 | "arguments": "first" | |
58 | }, | |
59 | "flatTernaryExpressions": true | |
60 | } | |
61 | ], | |
910d631b | 62 | "no-else-return": [ |
6808d7a1 BA |
63 | 1, |
64 | { | |
65 | "allowElseIf": false | |
66 | } | |
67 | ], | |
1c5bfdf2 BA |
68 | "semi": [ |
69 | 1, | |
70 | "always" | |
71 | ] | |
72 | }, | |
73 | "parserOptions": { | |
74 | "parser": "babel-eslint" | |
75 | }, | |
76 | "globals": { | |
77 | "V": "readonly" | |
625022fd BA |
78 | } |
79 | }, | |
80 | "postcss": { | |
81 | "plugins": { | |
82 | "autoprefixer": {} | |
83 | } | |
84 | }, | |
85 | "browserslist": [ | |
86 | "> 1%", | |
87 | "last 2 versions", | |
88 | "not ie <= 8" | |
89 | ], | |
90 | "gitHooks": { | |
91 | "pre-commit": "lint-staged" | |
92 | }, | |
93 | "lint-staged": { | |
94 | "*.js": [ | |
95 | "vue-cli-service lint", | |
96 | "git add" | |
97 | ], | |
98 | "*.vue": [ | |
99 | "vue-cli-service lint", | |
100 | "git add" | |
101 | ] | |
102 | } | |
103 | } |