1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +00:00

Fixed eslint import warning

This commit is contained in:
Vladimir Volek 2018-08-10 19:07:51 +02:00
parent fbb34a87b1
commit 6f83bba6b5
4 changed files with 25 additions and 9 deletions

View File

@ -17,7 +17,14 @@
}], }],
["babel-plugin-root-import", { ["babel-plugin-root-import", {
"rootPathSuffix": "./src", "rootPathSuffix": "./src",
"rootPathPrefix": "~" "rootPathPrefix": "~",
"alias": {
"components": "./src/js/components",
"config": "./src/js/config",
"reducers": "./src/js/reducers",
"actions": "./src/js/actions",
"services": "./src/js/services"
}
}], }],
"babel-plugin-styled-components" "babel-plugin-styled-components"
], ],

View File

@ -32,14 +32,7 @@
], ],
"settings": { "settings": {
"import/parser": "babel-eslint", "import/parser": "babel-eslint",
"import/resolver": { "import/resolver": "babel-plugin-root-import",
"node": {
"moduleDirectory": [
"src",
"node_modules"
]
}
},
"import/ignore": [ "import/ignore": [
"\\.(scss|less|css)$" "\\.(scss|less|css)$"
] ]

View File

@ -78,6 +78,7 @@
"css-loader": "0.28.11", "css-loader": "0.28.11",
"eslint": "^4", "eslint": "^4",
"eslint-config-airbnb": "^17.0.0", "eslint-config-airbnb": "^17.0.0",
"eslint-import-resolver-babel-plugin-root-import": "^1.1.1",
"eslint-plugin-flowtype": "^2.50.0", "eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.13.0", "eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.18.0", "eslint-plugin-jest": "^21.18.0",

View File

@ -3323,6 +3323,21 @@ eslint-config-airbnb@^17.0.0:
object.assign "^4.1.0" object.assign "^4.1.0"
object.entries "^1.0.4" object.entries "^1.0.4"
eslint-import-resolver-babel-plugin-root-import@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-babel-plugin-root-import/-/eslint-import-resolver-babel-plugin-root-import-1.1.1.tgz#b060f1177557918389f7ed476e5b36a43854a381"
dependencies:
eslint-import-resolver-node "^0.2.1"
json5 "^0.5.0"
eslint-import-resolver-node@^0.2.1:
version "0.2.3"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c"
dependencies:
debug "^2.2.0"
object-assign "^4.0.1"
resolve "^1.1.6"
eslint-import-resolver-node@^0.3.1: eslint-import-resolver-node@^0.3.1:
version "0.3.2" version "0.3.2"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"