-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
121 lines (121 loc) · 2.89 KB
/
package.json
File metadata and controls
121 lines (121 loc) · 2.89 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"license": "MIT",
"version": "3.0.0",
"name": "eslint-config-typescript",
"description": "A base set of recommended ESLint rules for TypeScript projects",
"author": "Patricio Trevino <patricio@weirdpattern.com>",
"repository": {
"type": "git",
"url": "https://www.github.com/weirdpattern/eslint-config-typescript.git"
},
"keywords": [
"eslint",
"config",
"eslintconfig",
"eslint-config",
"typescript",
"prettier",
"react"
],
"files": [
"src/",
"index.js",
"prettier.js",
"prettier-react.js",
"react.js"
],
"devDependencies": {
"@types/node": "^12.0.12",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"create-react-class": "^15.6.3",
"cross-spawn": "^6.0.5",
"eslint": "^6.0.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-jsdoc": "^10.3.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.2",
"escape-regex-string": "^1.0.6",
"husky": "^3.0.0",
"jest": "^24.8.0",
"lint-staged": "^9.0.2",
"prettier": "^1.18.2",
"typescript": "^3.5.2"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=1.8.0",
"@typescript-eslint/parser": ">=1.8.0",
"eslint": ">=6.0.0",
"typescript": "*"
},
"scripts": {
"lint": "eslint .",
"test": "jest",
"test:coverage": "jest --coverage",
"test:spec": "eslint --format json",
"test:verbose": "jest --verbose"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm test"
}
},
"lint-staged": {
"*.js{,x}": [
"prettier --write",
"git add"
]
},
"eslintConfig": {
"extends": ["eslint:recommended", "plugin:jsdoc/recommended", "prettier"],
"plugins": ["prettier", "filenames", "jsdoc"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2015,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"settings": {
"jsdoc": {
"allowOverrideWithoutParam": true,
"allowImplementsWithoutParam": true,
"allowAugmentsExtendsWithoutParam": true
}
},
"rules": {
"semi": "error",
"quotes": ["error", "double", { "avoidEscape": true }],
"filenames/match-exported": ["error", "kebab"],
"prettier/prettier": "error"
}
},
"jest": {
"moduleFileExtensions": [
"js",
"jsx"
],
"testMatch": [
"**/specs/**/*.[Ss]pec{,s}.{j,t}s{,x}"
],
"rootDir": ".",
"verbose": false,
"resetMocks": true,
"resetModules": true,
"collectCoverage": false,
"collectCoverageFrom": [
"{index,prettier,prettier-react,react}.{j,t}s{,x}",
"src/*.{j,t}s{,x}",
"!**/*.min.js",
"!**/static/**",
"!**/specs/**",
"!**/node_modules/**"
]
}
}