-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 3.24 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "wiki-translator",
"version": "0.1.0",
"description": "A Chrome extension that automatically detects the longest language of a Wikipedia atricle and translates it.",
"private": true,
"scripts": {
"watch": "tsc-watch --project config/tsconfig.json --onSuccess \"webpack --mode=development --config config/webpack.config.js\"",
"build": "tsc --project config/tsconfig.json && webpack --mode=production --config config/webpack.config.js"
},
"devDependencies": {
"@types/chrome": "^0.0.181",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"chrome-types": "^0.1.179",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.7.3",
"eslint": "^8.36.0",
"file-loader": "^6.2.0",
"glob": "^9.3.0",
"mini-css-extract-plugin": "^2.7.5",
"path": "^0.12.7",
"prettier": "^2.8.4",
"ts-loader": "^9.4.2",
"tsc-watch": "^6.0.0",
"typescript": "^4.9.5",
"webpack": "^5.80.0",
"webpack-cli": "^5.0.1",
"webpack-merge": "^5.8.0"
},
"type": "module",
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"root": true,
"parserOptions": {
"project": "config/tsconfig.json"
},
"rules": {
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": [
"warn",
"always"
],
"semi": "error",
"brace-style": "off",
"@typescript-eslint/brace-style": ["warn", "stroustrup"],
"eol-last": "warn",
"space-before-blocks": "off",
"@typescript-eslint/space-before-blocks": "warn",
"arrow-spacing": "warn",
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": "warn",
"switch-colon-spacing": "warn",
"block-spacing": "warn",
"indent": "warn",
"quotes": "off",
"@typescript-eslint/quotes": "warn",
"space-infix-ops": "warn",
"new-parens": "warn",
"new-cap": "warn",
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"one-var": ["warn", "consecutive"],
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": "warn",
"@typescript-eslint/no-misused-promises": ["warn", { "checksVoidReturn": false }],
"@typescript-eslint/restrict-template-expressions": ["off"],
"semi-spacing": "warn",
"no-whitespace-before-property": "warn",
"no-multi-spaces": "warn",
"no-trailing-spaces": "warn",
"prefer-spread": "warn",
"prefer-object-spread": "warn",
"rest-spread-spacing": "warn"
},
"ignorePatterns": [
"*",
"!src",
"!src/**"
]
}
}