Skip to content

Commit

Permalink
Upgrade to eslint-plugin-import 1.15.0
Browse files Browse the repository at this point in the history
Configure new rules from 1.14.0 and 1.15.0
  • Loading branch information
randycoulman committed Sep 20, 2016
1 parent bae7e29 commit a4a88c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ This plugin contains all of the rules available in:
* [ESLint](http://eslint.org/): 3.5.0
* [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 6.1.2
* [eslint-plugin-react-native](https://github.com/intellicode/eslint-plugin-react-native): 2.0.0
* [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 1.13.0
* [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 1.15.0
## License
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ module.exports = {
'import/namespace': 'warn',
// Restrict which files can be imported in a given folder
'import/no-restricted-paths': 'off',
// Forbid import of modules using absolute paths
'import/no-absolute-path': 'warn',

//
// Import: Helpful Warnings
Expand Down Expand Up @@ -590,6 +592,8 @@ module.exports = {
// Enforce a newline after import statements
'import/newline-after-import': 'warn',
// Prefer a default export if module exports a single name
'import/prefer-default-export': 'warn'
'import/prefer-default-export': 'warn',
// Limit the maximum number of dependencies a module can have.
'import/max-dependencies': 'off'
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"babel-eslint": "^6.1.0",
"eslint": "^3.5.0",
"eslint-find-rules": "^1.13.2",
"eslint-plugin-import": "^1.13.0",
"eslint-plugin-import": "^1.15.0",
"eslint-plugin-react": "^6.1.2",
"eslint-plugin-react-native": "^2.0.0",
"npm-run-all": "^3.1.0"
},
"peerDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^3.5.0",
"eslint-plugin-import": "^1.13.0"
"eslint-plugin-import": "^1.15.0"
}
}

0 comments on commit a4a88c9

Please sign in to comment.