Skip to content

Commit

Permalink
Merge pull request #30 from CodingZeal/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
randycoulman authored Sep 20, 2016
2 parents 0b46e4a + edd303e commit a98226f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 14 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Zeal's JavaScript coding style is still evolving as we do more projects, but thi

## Install

**NOTE:** The current version of this package is designed to work with ESLint 2.0 and greater. If you are still using ESLint 1.x, use version 0.2.0 of this package instead.

To make use of this configuration, install eslint, babel-eslint, eslint-plugin-import, and this package as development dependencies of your project:

```
Expand Down Expand Up @@ -112,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.3.1
* [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): 6.1.2
* [ESLint](http://eslint.org/): 3.5.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.13.0
* [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): 1.15.0
## License
Expand Down
18 changes: 17 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ module.exports = {
'array-callback-return': 'warn',
// treat var statements as if they were block scoped
'block-scoped-var': 'warn',
// enforce that class methods utilize this
'class-methods-use-this': 'off',
// specify the maximum cyclomatic complexity allowed in a program
complexity: ['warn', 2],
// require return statements to either always or never specify values
Expand Down Expand Up @@ -282,6 +284,8 @@ module.exports = {
'no-process-exit': 'warn',
// restrict usage of specified node imports
'no-restricted-imports': 'off',
// disallow certain properties on certain objects
'no-restricted-properties': 'off',
// restrict usage of specified node modules
'no-restricted-modules': 'off',
// disallow use of synchronous methods
Expand Down Expand Up @@ -330,10 +334,14 @@ module.exports = {
'key-spacing': 'warn',
// enforce spacing before and after keywords
'keyword-spacing': 'warn',
// enforce position of line comments
'line-comment-position': 'off',
// disallow mixed 'LF' and 'CRLF' as linebreaks
'linebreak-style': 'warn',
// enforce empty lines around comments
'lines-around-comment': 'warn',
// require or disallow newlines around directives
'lines-around-directive': ['warn', { before: 'never', after: 'always' }],
// specify the maximum depth that blocks can be nested
'max-depth': 'warn',
// specify the maximum length of a line in your program
Expand Down Expand Up @@ -503,6 +511,8 @@ module.exports = {
// suggest using const declaration for variables that are never modified
// after declared
'prefer-const': 'warn',
// disallow parseInt() in favor of binary, octal, and hexadecimal literals
'prefer-numeric-literals': 'warn',
// suggest using Reflect methods where applicable
'prefer-reflect': 'off',
// suggest using the rest parameters instead of arguments
Expand All @@ -515,6 +525,8 @@ module.exports = {
'require-yield': 'warn',
// enforce spacing between rest and spread operators and their expressions
'rest-spread-spacing': 'warn',
// require symbol descriptions
'symbol-description': 'warn',
// enforce spacing around embedded expressions of template strings
'template-curly-spacing': 'warn',
// enforce spacing around the * in yield* expressions
Expand All @@ -536,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 @@ -578,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'
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
],
"devDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^3.3.1",
"eslint-find-rules": "^1.13.0",
"eslint-plugin-import": "^1.13.0",
"eslint-plugin-react": "^6.1.2",
"eslint": "^3.5.0",
"eslint-find-rules": "^1.13.2",
"eslint-plugin-import": "^1.15.0",
"eslint-plugin-react": "^6.3.0",
"eslint-plugin-react-native": "^2.0.0",
"npm-run-all": "^2.2.2"
"npm-run-all": "^3.1.0"
},
"peerDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^3.3.1",
"eslint-plugin-import": "^1.13.0"
"eslint": "^3.5.0",
"eslint-plugin-import": "^1.15.0"
}
}
10 changes: 9 additions & 1 deletion react.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ module.exports = {
'react/jsx-uses-vars': 'warn',
// Prevent missing parentheses around multilines JSX
'react/jsx-wrap-multilines': 'warn',
// Prevent passing of children as props
'react/no-children-prop': 'warn',
// Prevent usage of dangerous JSX properties
'react/no-danger': 'warn',
// Prevent problem with children and props.dangerouslySetInnerHTML
Expand All @@ -83,8 +85,12 @@ module.exports = {
'react/no-set-state': 'warn',
// Prevent using string references in ref attribute
'react/no-string-refs': 'warn',
// Prevent invalid characters from appearing in markup
'react/no-unescaped-entities': 'warn',
// Prevent usage of unknown DOM property
'react/no-unknown-property': 'warn',
// Prevent definitions of unused prop types
'react/no-unused-prop-types': 'warn',
// Enforce ES5 or ES6 class for React Components
'react/prefer-es6-class': 'warn',
// Enforce stateless React Components to be written as a pure function
Expand All @@ -106,6 +112,8 @@ module.exports = {
callbacksLast: true,
ignoreCase: true,
requiredFirst: true
}]
}],
// Enforce style prop value being an object
'react/style-prop-object': 'warn'
}
}

0 comments on commit a98226f

Please sign in to comment.