mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
// TODO issue for jest lint
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['prettier', '@typescript-eslint', 'type-graphql'],
|
|
extends: ['standard', 'eslint:recommended', 'plugin:prettier/recommended'],
|
|
// add your custom rules here
|
|
rules: {
|
|
'no-console': ['error'],
|
|
'no-debugger': 'error',
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
htmlWhitespaceSensitivity: 'ignore',
|
|
},
|
|
],
|
|
},
|
|
overrides: [
|
|
// only for ts files
|
|
{
|
|
files: ['*.ts'],
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
'plugin:type-graphql/recommended',
|
|
],
|
|
// allow explicitly defined dangling promises
|
|
rules: {
|
|
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
|
|
'no-void': ['error', { allowAsStatement: true }],
|
|
},
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
},
|
|
],
|
|
}
|