yyuap-ref
Version:
cloud os fe ref project which is based on tinper
41 lines (39 loc) • 1.02 kB
JavaScript
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
extends: 'airbnb',
// check if imports actually resolve
'settings': {
'import/resolver': {
'webpack': {
'config': 'config/webpack.base.conf.js'
}
}
},
// add your custom rules here
'rules': {
// 'no-unused-vars': [
// 'warn',
// {
// args: 'none',
// ignoreRestSiblings: true,
// },
// ],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error'],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-param-reassign': "warn",
'react/jsx-filename-extension': 0,
'react/prefer-stateless-function': 0,
'react/no-array-index-key': 0,
'jsx-a11y/anchor-is-valid': 0,
}
}