Skip to content

Commit 702f390

Browse files
committed
chore(deps): upgrade configurations
1 parent 4f42ece commit 702f390

File tree

6 files changed

+371
-357
lines changed

6 files changed

+371
-357
lines changed

.commitlintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": [
3-
"@commitlint/config-conventional"
3+
"@1stg"
44
]
55
}

.eslintrc.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const { js, md, mdx } = require('@1stg/eslint-config/overrides')
1+
const { js } = require('@1stg/eslint-config/overrides')
22

33
module.exports = {
4-
extends: ['@1stg', 'plugin:import/typescript'],
5-
overrides: [js, md, mdx],
4+
extends: ['@1stg', 'plugin:import/typescript', 'plugin:mdx/recommended'],
5+
overrides: [js],
66
rules: {
77
'node/no-unsupported-features/es-syntax': 0,
88
},

package.json

+10-12
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,31 @@
4242
"tsconfig-paths": "^3.9.0"
4343
},
4444
"devDependencies": {
45-
"@1stg/babel-preset": "^0.6.1",
46-
"@1stg/eslint-config": "^0.10.0",
45+
"@1stg/babel-preset": "^0.6.2",
46+
"@1stg/commitlint-config": "^0.1.0",
47+
"@1stg/eslint-config": "^0.12.1",
4748
"@1stg/husky-config": "^0.3.0",
48-
"@1stg/lint-staged": "^0.6.0",
49+
"@1stg/lint-staged": "^0.6.1",
4950
"@1stg/prettier-config": "^0.2.0",
5051
"@1stg/remark-config": "^0.2.1",
51-
"@1stg/rollup-config": "^0.9.3",
52-
"@1stg/tsconfig": "^0.5.0",
52+
"@1stg/rollup-config": "^0.9.4",
53+
"@1stg/tsconfig": "^0.5.1",
5354
"@babel/core": "^7.6.0",
54-
"@commitlint/cli": "^8.1.0",
55-
"@commitlint/config-conventional": "^8.1.0",
55+
"@commitlint/cli": "^8.2.0",
5656
"@types/debug": "^4.1.5",
5757
"@types/glob": "^7.1.1",
5858
"@types/node": "^12.7.5",
5959
"@types/resolve": "^0.0.8",
6060
"@types/unist": "^2.0.3",
6161
"dummy.js": "link:dummy.js",
62-
"eslint": "^6.3.0",
63-
"eslint-formatter-friendly": "^7.0.0",
64-
"eslint-plugin-import": "^2.18.2",
62+
"eslint": "^6.4.0",
6563
"husky": "^3.0.5",
6664
"lint-staged": "^9.2.5",
6765
"npm-run-all": "^4.1.5",
6866
"prettier": "^1.18.2",
6967
"rimraf": "^3.0.0",
70-
"rollup": "^1.21.2",
71-
"type-coverage": "^2.2.0",
68+
"rollup": "^1.21.4",
69+
"type-coverage": "^2.3.0",
7270
"typescript": "^3.6.3"
7371
},
7472
"typeCoverage": {

src/.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { ts } = require('@1stg/eslint-config/overrides')
22

33
module.exports = {
4-
extends: '@1stg',
54
overrides: [
65
...ts,
76
{

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ function getMappedPath(source: string, file: string) {
123123
.map(mapper => mapper(source, file))
124124
.filter(path => !!path)
125125

126+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
126127
if (paths.length > 1) {
127128
log('found multiple matching ts paths:', paths)
128129
}
@@ -190,6 +191,7 @@ function mangleScopedPackage(moduleName: string) {
190191
if (moduleName.startsWith('@')) {
191192
const replaceSlash = moduleName.replace(path.sep, '__')
192193
if (replaceSlash !== moduleName) {
194+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
193195
return replaceSlash.slice(1) // Take off the "@"
194196
}
195197
}

0 commit comments

Comments
 (0)