Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
integrate: import plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlq committed Dec 26, 2016
1 parent 934f19e commit 66db8fa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
'standard',
'promise',
'html',
'import',
],

globals: {
Expand All @@ -28,6 +29,22 @@ module.exports = {
window: false,
},

settings: {
'import/resolver': {
node: {
extensions: ['.js', '.json']
}
},
'import/extensions': [
'.js',
'.vue',
],
'import/ignore': [
'node_modules',
'\\.(coffee|scss|css|less|hbs|svg|json)$',
],
},

rules: {
'accessor-pairs': 2,
'arrow-spacing': [2, { 'before': true, 'after': true }],
Expand Down Expand Up @@ -179,6 +196,14 @@ module.exports = {
'promise/param-names': 2,
'no-debugger': inProduction ? 2 : 0,
'no-console': inProduction ? 2 : 0,

'import/first': [2],
'import/no-duplicates': [2],
'import/order': [2, {'groups': ['builtin', 'external', 'index', 'sibling', 'internal', 'parent']}],
'import/newline-after-import': [2],
'import/no-amd': [2],
'import/no-commonjs': [2],
"import/no-extraneous-dependencies": [2, {"devDependencies": false, "optionalDependencies": false, "peerDependencies": false}],
},
};

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-vue-impression",
"version": "1.0.5",
"version": "1.1.0",
"description": "ESlint shareable config for Vue support in javaScript standard style.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"eslint-plugin-html": "^1.7.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1"
"eslint-plugin-standard": "^2.0.1",
"eslint-plugin-import": "^2.2.0"
}
}

0 comments on commit 66db8fa

Please sign in to comment.