Skip to content

Commit

Permalink
Merge pull request #33 from CodingZeal/latest-eslint
Browse files Browse the repository at this point in the history
Upgrade to latest eslint and friends
  • Loading branch information
randycoulman authored Oct 3, 2016
2 parents dffe73c + 0c7d7ad commit c9ec0e5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- '4.2'
- node
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ or, if your webpack config file is not in the default location:
This plugin contains all of the rules available in:
* [ESLint](http://eslint.org/): 3.5.0
* [ESLint](http://eslint.org/): 3.7.0
* [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 6.3.0
* [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.15.0
* [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 2.0.0
## License
Expand Down
16 changes: 13 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
ecmaFeatures: {
experimentalObjectRestSpread: true
},
ecmaVersion: 6,
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: ['import'],
Expand Down Expand Up @@ -550,6 +550,12 @@ module.exports = {
'import/no-restricted-paths': 'off',
// Forbid import of modules using absolute paths
'import/no-absolute-path': 'warn',
// Forbid require() calls with expressions
'import/no-dynamic-require': 'warn',
// Prevent importing the submodules of other modules
'import/no-internal-modules': 'off',
// Forbid Webpack loader syntax in imports
'import/no-webpack-loader-syntax': 'warn',

//
// Import: Helpful Warnings
Expand All @@ -569,6 +575,8 @@ module.exports = {

//
// Import: Module Systems
// Report potentially ambiguous parse goal (script vs. module)
'import/unambiguous': 'off',
// Report CommonJS require calls and module.exports or exports.*
'import/no-commonjs': 'off',
// Report AMD require and define calls
Expand All @@ -580,7 +588,7 @@ module.exports = {
// Import: Style guide
//
// Ensure all imports appear before other statements
'import/imports-first': 'warn',
'import/first': 'warn',
// Report repeated import of the same module in multiple places
'import/no-duplicates': 'warn',
// Report namespace imports
Expand All @@ -594,6 +602,8 @@ module.exports = {
// Prefer a default export if module exports a single name
'import/prefer-default-export': 'warn',
// Limit the maximum number of dependencies a module can have.
'import/max-dependencies': 'off'
'import/max-dependencies': 'off',
// Forbid unassigned imports.
'import/no-unassigned-import': 'off'
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
"style linter"
],
"devDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^3.5.0",
"eslint-find-rules": "^1.13.2",
"eslint-plugin-import": "^1.15.0",
"babel-eslint": "^7.0.0",
"eslint": "^3.7.0",
"eslint-find-rules": "^1.14.0",
"eslint-plugin-import": "^2.0.0",
"eslint-plugin-react": "^6.3.0",
"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.15.0"
"babel-eslint": "^7.0.0",
"eslint": "^3.7.0",
"eslint-plugin-import": "^2.0.0"
}
}

0 comments on commit c9ec0e5

Please sign in to comment.