Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
chore(deps): upgrade configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Sep 17, 2019
1 parent 4f42ece commit 702f390
Show file tree
Hide file tree
Showing 6 changed files with 371 additions and 357 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
"@1stg"
]
}
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { js, md, mdx } = require('@1stg/eslint-config/overrides')
const { js } = require('@1stg/eslint-config/overrides')

module.exports = {
extends: ['@1stg', 'plugin:import/typescript'],
overrides: [js, md, mdx],
extends: ['@1stg', 'plugin:import/typescript', 'plugin:mdx/recommended'],
overrides: [js],
rules: {
'node/no-unsupported-features/es-syntax': 0,
},
Expand Down
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,31 @@
"tsconfig-paths": "^3.9.0"
},
"devDependencies": {
"@1stg/babel-preset": "^0.6.1",
"@1stg/eslint-config": "^0.10.0",
"@1stg/babel-preset": "^0.6.2",
"@1stg/commitlint-config": "^0.1.0",
"@1stg/eslint-config": "^0.12.1",
"@1stg/husky-config": "^0.3.0",
"@1stg/lint-staged": "^0.6.0",
"@1stg/lint-staged": "^0.6.1",
"@1stg/prettier-config": "^0.2.0",
"@1stg/remark-config": "^0.2.1",
"@1stg/rollup-config": "^0.9.3",
"@1stg/tsconfig": "^0.5.0",
"@1stg/rollup-config": "^0.9.4",
"@1stg/tsconfig": "^0.5.1",
"@babel/core": "^7.6.0",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@commitlint/cli": "^8.2.0",
"@types/debug": "^4.1.5",
"@types/glob": "^7.1.1",
"@types/node": "^12.7.5",
"@types/resolve": "^0.0.8",
"@types/unist": "^2.0.3",
"dummy.js": "link:dummy.js",
"eslint": "^6.3.0",
"eslint-formatter-friendly": "^7.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint": "^6.4.0",
"husky": "^3.0.5",
"lint-staged": "^9.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"rollup": "^1.21.2",
"type-coverage": "^2.2.0",
"rollup": "^1.21.4",
"type-coverage": "^2.3.0",
"typescript": "^3.6.3"
},
"typeCoverage": {
Expand Down
1 change: 0 additions & 1 deletion src/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { ts } = require('@1stg/eslint-config/overrides')

module.exports = {
extends: '@1stg',
overrides: [
...ts,
{
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function getMappedPath(source: string, file: string) {
.map(mapper => mapper(source, file))
.filter(path => !!path)

// eslint-disable-next-line @typescript-eslint/no-magic-numbers
if (paths.length > 1) {
log('found multiple matching ts paths:', paths)
}
Expand Down Expand Up @@ -190,6 +191,7 @@ function mangleScopedPackage(moduleName: string) {
if (moduleName.startsWith('@')) {
const replaceSlash = moduleName.replace(path.sep, '__')
if (replaceSlash !== moduleName) {
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
return replaceSlash.slice(1) // Take off the "@"
}
}
Expand Down
Loading

0 comments on commit 702f390

Please sign in to comment.