Skip to content

Commit 9a9162e

Browse files
committed
Add .vue support into the rules of eslint-plugin-import
1 parent ff7157a commit 9a9162e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

app/templates/_eslintrc.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"extends": "airbnb",
2+
"extends": "airbnb-base",
33
"plugins": [
44
"html"
5-
]
6-
}
5+
],
6+
"settings": {
7+
"import/resolver": {
8+
"node": {
9+
"extensions": [".js", ".json", ".vue"]
10+
}
11+
}
12+
}
13+
}

app/templates/_package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
"babel-runtime": "^5.8.0",
1919
"css-loader": "^0.23.1",
2020
"eslint": "^2.8.0",
21-
"eslint-config-airbnb": "^8.0.0",
21+
"eslint-config-airbnb-base": "^1.0.4",
2222
"eslint-plugin-html": "^1.4.0",
23-
"eslint-plugin-import": "^1.6.0",
24-
"eslint-plugin-jsx-a11y": "^1.0.3",
25-
"eslint-plugin-react": "^5.0.1",
23+
"eslint-plugin-import": "^1.6.1",
2624
"extract-text-webpack-plugin": "^1.0.1",
2725
"file-loader": "^0.8.5",
2826
"html-webpack-plugin": "^2.16.0",

0 commit comments

Comments
 (0)