backend/.eslintrc.js
Fred Boniface d07cd177b3 Extend TS Usage
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-24 01:17:00 +01:00

45 lines
762 B
JavaScript

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