forked from tleunen/eslint-import-resolver-babel-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for new version of babel-plugin-module-resolver v2
BREAKING CHANGE: This removes the support for babel-plugin-module-alias v1
- Loading branch information
Tommy Leunen
committed
Aug 14, 2016
1 parent
71d7071
commit f2fc1f3
Showing
9 changed files
with
88 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,7 @@ indent_style = space | |
indent_size = 4 | ||
|
||
[*.{json,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.*] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
comment: | ||
layout: "header, diff, tree" | ||
layout: "header, tree" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "eslint-import-resolver-babel-module-alias", | ||
"name": "eslint-import-resolver-babel-module", | ||
"version": "1.5.1", | ||
"main": "src/index.js", | ||
"description": "babel-plugin-module-alias resolver for eslint-plugin-import", | ||
"description": "babel-plugin-module-resolver resolver for eslint-plugin-import", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tleunen/eslint-import-resolver-babel-module-alias.git" | ||
"url": "https://github.com/tleunen/eslint-import-resolver-babel-module.git" | ||
}, | ||
"author": "Tommy Leunen <[email protected]> (https://tommyleunen.com)", | ||
"license": "MIT", | ||
|
@@ -16,6 +16,7 @@ | |
"babel", | ||
"babel-plugin", | ||
"module", | ||
"resolver", | ||
"alias", | ||
"rewrite", | ||
"resolve", | ||
|
@@ -26,22 +27,21 @@ | |
], | ||
"dependencies": { | ||
"find-babel-config": "^1.0.0", | ||
"object-assign": "^4.0.1", | ||
"resolve": "^1.1.7" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-module-alias": "^1.6.0", | ||
"babel-plugin-module-resolver": "^2.0.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.3.0", | ||
"eslint-config-airbnb-base": "^5.0.2", | ||
"eslint-plugin-import": "^1.13.0", | ||
"lodash": "^4.15.0", | ||
"mocha": "^3.0.2", | ||
"nyc": "^8.0.0", | ||
"nyc": "^8.1.0", | ||
"standard-version": "^2.4.0" | ||
}, | ||
"peerDependencies": { | ||
"babel-plugin-module-alias": "1.x" | ||
"babel-plugin-module-resolver": "2.x" | ||
}, | ||
"scripts": { | ||
"lint": "eslint src test", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"plugins": [ | ||
["module-resolver", { | ||
"alias": { | ||
"components": "./examples/components", | ||
"underscore": "npm:lodash" | ||
} | ||
}] | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": [ | ||
["babel-plugin-module-resolver", { | ||
"alias": { | ||
"subsub": "./examples/components/sub/sub" | ||
} | ||
}] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters