eslint-ts/index.js

68 lines
1.8 KiB
JavaScript
Raw Normal View History

2020-04-06 11:56:05 +02:00
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* See file 'LICENSE' for full license details.
2020-05-06 07:50:49 +02:00
* Created by Timo Hocker <timo@sapphirecode.ovh>, March 2020
2020-04-06 11:56:05 +02:00
*/
module.exports = {
globals: {},
parser: '@typescript-eslint/parser',
extends: [
2020-05-06 07:37:27 +02:00
'@sapphirecode/eslint-config-es6',
2020-04-06 11:56:05 +02:00
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
plugins: [
'@typescript-eslint'
],
parserOptions: {
sourceType: 'module',
parser: 'babel-eslint'
},
2020-04-09 09:05:38 +02:00
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
}
},
2020-04-08 11:12:43 +02:00
rules: {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/naming-convention': ['error',
2020-04-08 11:18:01 +02:00
{ selector: 'default', format: ['snake_case'] },
{ selector: 'typeLike', format: ['PascalCase'] },
{
selector: 'property',
modifiers: ['private'],
format: ['snake_case'],
leadingUnderscore: 'require'
}
2020-04-08 11:44:45 +02:00
],
2020-04-27 14:45:01 +02:00
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }],
2020-05-06 08:22:12 +02:00
'jsdoc/require-param-type': 'off',
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-description': 'off',
'jsdoc/check-alignment': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/implements-on-classes': 'off',
'jsdoc/newline-after-description': 'off',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-param-name': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-check': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-type': 'off',
'jsdoc/valid-types': 'off'
2020-04-08 11:12:43 +02:00
}
2020-04-06 11:56:05 +02:00
}