fleet/.eslintrc.js
Mike Stone ee3d96eb53 Update eslint (#337)
* Updates eslint packages

* Expected parentheses around arrow function argument having a body with curly braces

* Prop type `object` is forbidden

* Visible, non-interactive elements should not have mouse or keyboard event listeners

* Prop type is defined but not used

* Unexpected use of file extension "jsx"

* Expected 'this' to be used by class method

* HTML entities must be escaped

* Prevent default behavior on more options button click
2016-10-21 19:13:41 -04:00

44 lines
982 B
JavaScript

var path = require('path');
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
plugins: [
'react'
],
env: {
'node': true,
'mocha': true
},
globals: {
'expect': false,
'describe': false
},
rules: {
'consistent-return': 1,
'arrow-body-style': 0,
'max-len': 0,
'no-use-before-define': [2, 'nofunc'],
'no-unused-expressions': 0,
'no-console': 0,
'space-before-function-paren': 0,
'react/prefer-stateless-function': 0,
'react/no-multi-comp': 0,
'react/no-unused-prop-types': [1, { 'customValidators': [], skipShapeProps: true }],
'no-param-reassign': 0,
'new-cap': 0,
'import/no-unresolved': 'error',
'linebreak-style': 0,
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'no-underscore-dangle': 0
},
settings: {
'import/resolver': {
webpack: {
config: path.join(__dirname, 'webpack.config.js')
}
}
}
}