backend/.eslintrc.js
Fred Boniface 849c31af36 Add eslint rule: max line length (80)
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 21:53:56 +01:00

39 lines
529 B
JavaScript

module.exports = {
'env': {
'browser': false,
'node': true,
'commonjs': true,
'es2021': true
},
'extends': 'eslint:recommended',
'overrides': [
],
'parserOptions': {
'ecmaVersion': 'latest'
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'max-len': [
'warn',
{
'code': 80
}
]
}
};