fleet/.eslintrc.js
Zachary Wasserman d453ca3f8f
Enable eslint file resolution linting (#2119)
Previously this was disabled (perhaps unintentionally due to the
duplicate settings in the .eslintrc.js). Enable the lint rule and fix
the violations.

May fix JS build issues on case-sensitive filesystems.
2019-10-22 13:00:31 -07:00

48 lines
1.1 KiB
JavaScript

var path = require('path');
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
plugins: [
'react'
],
env: {
'node': true,
'mocha': true,
'browser': 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': 2,
'linebreak-style': 0,
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/extensions': 0,
'import/no-extraneous-dependencies': 0,
'no-underscore-dangle': 0,
'jsx-a11y/no-static-element-interactions': 'off'
},
settings: {
'import/resolver': {
webpack: {
config: path.join(__dirname, 'webpack.config.js')
}
}
}
}