1 | {
|
2 | "name": "litejs",
|
3 | "version": "22.12.0",
|
4 | "description": "Full-stack web framework in a tiny package",
|
5 | "license": "MIT",
|
6 | "author": "Lauri Rooden <lauri@rooden.ee>",
|
7 | "keywords": [
|
8 | "litejs",
|
9 | "framework",
|
10 | "http",
|
11 | "server",
|
12 | "content negotiation",
|
13 | "accept",
|
14 | "multipart",
|
15 | "uploads",
|
16 | "form-data"
|
17 | ],
|
18 | "homepage": "https://litejs.com",
|
19 | "repository": "github:litejs/litejs",
|
20 | "bugs": "https://github.com/litejs/litejs/issues",
|
21 | "main": "index.js",
|
22 | "files": [
|
23 | "/*.js"
|
24 | ],
|
25 | "scripts": {
|
26 | "test": "TZ='Europe/Tallinn' c8 -r lcov -r text-summary --check-coverage --branches=70 --functions=70 --lines=70 --statements=70 lj test test/index.js --no-color --brief"
|
27 | },
|
28 | "devDependencies": {
|
29 | "@litejs/cli": "22.8.0"
|
30 | },
|
31 | "litejs": {
|
32 | "build": false,
|
33 | "global": "jscpd jshint c8",
|
34 | "lint": [
|
35 | "jshint *.js",
|
36 | "jscpd --exitCode 1 --pattern *.js"
|
37 | ]
|
38 | },
|
39 | "eslintConfig": {
|
40 | "root": true,
|
41 | "env": {
|
42 | "browser": true,
|
43 | "node": true
|
44 | },
|
45 | "extends": "eslint:recommended",
|
46 | "rules": {
|
47 | "comma-dangle": [
|
48 | "error",
|
49 | "never"
|
50 | ],
|
51 | "comma-spacing": [
|
52 | "error",
|
53 | {
|
54 | "before": false,
|
55 | "after": true
|
56 | }
|
57 | ],
|
58 | "comma-style": [
|
59 | "error",
|
60 | "first",
|
61 | {
|
62 | "exceptions": {
|
63 | "ArrayExpression": true,
|
64 | "ObjectExpression": true
|
65 | }
|
66 | }
|
67 | ],
|
68 | "eqeqeq": [
|
69 | "error",
|
70 | "always",
|
71 | {
|
72 | "null": "ignore"
|
73 | }
|
74 | ],
|
75 | "func-call-spacing": [
|
76 | "error",
|
77 | "never"
|
78 | ],
|
79 | "func-style": [
|
80 | "error",
|
81 | "declaration",
|
82 | {
|
83 | "allowArrowFunctions": true
|
84 | }
|
85 | ],
|
86 | "indent": [
|
87 | "error",
|
88 | "tab",
|
89 | {
|
90 | "VariableDeclarator": 0,
|
91 | "MemberExpression": 0,
|
92 | "ignoredNodes": [
|
93 | "ConditionalExpression"
|
94 | ],
|
95 | "flatTernaryExpressions": true,
|
96 | "offsetTernaryExpressions": true
|
97 | }
|
98 | ],
|
99 | "max-depth": [
|
100 | "error",
|
101 | 6
|
102 | ],
|
103 | "max-params": [
|
104 | "error",
|
105 | 6
|
106 | ],
|
107 | "new-cap": "error",
|
108 | "no-empty": [
|
109 | "error",
|
110 | {
|
111 | "allowEmptyCatch": true
|
112 | }
|
113 | ],
|
114 | "semi": [
|
115 | "error",
|
116 | "never",
|
117 | {
|
118 | "beforeStatementContinuationChars": "always"
|
119 | }
|
120 | ],
|
121 | "semi-spacing": [
|
122 | "error",
|
123 | {
|
124 | "before": false,
|
125 | "after": true
|
126 | }
|
127 | ],
|
128 | "space-unary-ops": [
|
129 | "error",
|
130 | {
|
131 | "words": true,
|
132 | "nonwords": false
|
133 | }
|
134 | ]
|
135 | }
|
136 | },
|
137 | "jshintConfig": {
|
138 | "asi": true,
|
139 | "esversion": 3,
|
140 | "curly": true,
|
141 | "eqeqeq": true,
|
142 | "eqnull": true,
|
143 | "evil": true,
|
144 | "nonbsp": true,
|
145 | "laxcomma": true,
|
146 | "latedef": "nofunc",
|
147 | "maxdepth": 6,
|
148 | "unused": true,
|
149 | "undef": true,
|
150 | "predef": [
|
151 | "require",
|
152 | "process",
|
153 | "Buffer",
|
154 | "module",
|
155 | "exports"
|
156 | ],
|
157 | "quotmark": "double"
|
158 | }
|
159 | }
|