nostream/.eslintrc.js
Ricardo Arturo Cabral Mejia 4941f8307a
chore: improve linting
2022-11-08 23:52:25 -05:00

36 lines
982 B
JavaScript

module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
root: true,
env: {
node: true,
},
ignorePatterns: ['dist', 'tslint.json', 'node_modules'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
semi: ['error', 'never'],
quotes: ['error', 'single', { avoidEscape: true }],
'sort-imports': ['error', {
ignoreCase: true,
allowSeparatedGroups: true,
}],
curly: [2, 'multi-line'],
'max-len': [
'error',
{
code: 120,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
'comma-dangle': ['error', 'always-multiline'],
},
}