* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 8.1.0 Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 8.1.0. - [Release notes](https://github.com/prettier/eslint-config-prettier/releases) - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v8.1.0) Signed-off-by: dependabot[bot] <support@github.com> * chore: update eslint config Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Federico Grandi <fgrandi30@gmail.com>
35 lines
673 B
JavaScript
35 lines
673 B
JavaScript
module.exports = {
|
|
env: {
|
|
commonjs: true,
|
|
es6: true,
|
|
node: true
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
|
globals: {},
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 6,
|
|
sourceType: 'module'
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
'prettier/prettier': 'warn',
|
|
'no-cond-assign': [2, 'except-parens'],
|
|
'no-unused-vars': 0,
|
|
'@typescript-eslint/no-unused-vars': 1,
|
|
'no-empty': [
|
|
'error',
|
|
{
|
|
allowEmptyCatch: true
|
|
}
|
|
],
|
|
'prefer-const': [
|
|
'warn',
|
|
{
|
|
destructuring: 'all'
|
|
}
|
|
],
|
|
'spaced-comment': 'warn'
|
|
}
|
|
}
|