2016-09-06 18:41:16 +00:00
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
2016-09-06 21:00:34 +00:00
|
|
|
extends: 'airbnb',
|
|
|
|
parser: 'babel-eslint',
|
2016-09-06 18:41:16 +00:00
|
|
|
plugins: [
|
2016-09-06 21:00:34 +00:00
|
|
|
'react'
|
2016-09-06 18:41:16 +00:00
|
|
|
],
|
|
|
|
env: {
|
2016-09-06 21:00:34 +00:00
|
|
|
'node': true,
|
2017-05-10 16:26:05 +00:00
|
|
|
'mocha': true,
|
|
|
|
'browser': true
|
2016-09-06 18:41:16 +00:00
|
|
|
},
|
|
|
|
globals: {
|
2016-09-06 21:00:34 +00:00
|
|
|
'expect': false,
|
|
|
|
'describe': false
|
2016-09-06 18:41:16 +00:00
|
|
|
},
|
|
|
|
rules: {
|
2016-09-06 21:00:34 +00:00
|
|
|
'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,
|
2016-10-21 23:13:41 +00:00
|
|
|
'react/no-unused-prop-types': [1, { 'customValidators': [], skipShapeProps: true }],
|
2016-09-06 21:00:34 +00:00
|
|
|
'no-param-reassign': 0,
|
|
|
|
'new-cap': 0,
|
|
|
|
'import/no-unresolved': 'error',
|
2016-09-07 20:07:45 +00:00
|
|
|
'linebreak-style': 0,
|
2016-09-13 19:50:37 +00:00
|
|
|
'import/no-named-as-default': 'off',
|
2016-09-20 13:42:08 +00:00
|
|
|
'import/no-named-as-default-member': 'off',
|
2017-03-13 19:13:33 +00:00
|
|
|
'import/extensions': 0,
|
|
|
|
'import/no-extraneous-dependencies': 0,
|
|
|
|
'import/no-unresolved': 0,
|
2016-09-20 13:42:08 +00:00
|
|
|
'no-underscore-dangle': 0
|
2016-09-06 18:41:16 +00:00
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
webpack: {
|
|
|
|
config: path.join(__dirname, 'webpack.config.js')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|