avocado/config/.eslint.defaults.js
2020-12-28 21:18:54 -06:00

25 lines
505 B
JavaScript

const config = {
globals: {
AVOCADO_CLIENT: true,
AVOCADO_SERVER: true,
process: true,
window: true,
},
ignorePatterns: [
'/*',
'!/src',
],
rules: {
'babel/object-curly-spacing': 'off',
'brace-style': ['error', 'stroustrup'],
'no-bitwise': ['error', {int32Hint: true}],
'no-plusplus': 'off',
'no-shadow': 'off',
'no-underscore-dangle': 'off',
'padded-blocks': ['error', {classes: 'always'}],
yoda: 'off',
},
};
module.exports = config;