admin-bro-hapijs
Version:
This is an official AdminBro plugin which integrates it to hapijs framework.
57 lines • 1.22 kB
JavaScript
module.exports = {
'env': {
'es6': true,
'node': true,
'mocha': true
},
'extends': 'airbnb-base',
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module'
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
],
'import/no-unresolved': 'off',
'no-underscore-dangle': 'off',
'guard-for-in': 'off',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
},
overrides: [
{
files: ['*-test.js', '*.spec.js'],
rules: {
'no-unused-expressions': 'off',
'func-names': 'off',
'prefer-arrow-callback': 'off'
}
},
{
files: ["examples/**/*.js"],
rules: {
'import/no-extraneous-dependencies': 'off'
}
}
],
globals: {
'expect': true,
'factory': true,
'sandbox': true,
'User': true
}
}