50 lines
1.8 KiB
JavaScript
50 lines
1.8 KiB
JavaScript
/* eslint-disable */
|
|
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: ['./tsconfig-base.json', './src/main/tsconfig-cjs.json'],
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
plugins: ['prettier', '@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
'prettier',
|
|
],
|
|
rules: {
|
|
'prettier/prettier': ['error', require('./.prettierrc.json')],
|
|
'no-empty': [
|
|
'error',
|
|
{
|
|
allowEmptyCatch: true,
|
|
},
|
|
],
|
|
'brace-style': 'error',
|
|
'@typescript-eslint/camelcase': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/unbound-method': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/prefer-readonly': 'warn',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
'@typescript-eslint/restrict-plus-operands': 'warn',
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
'no-useless-escape': 'warn',
|
|
'no-control-regex': 'warn',
|
|
'@typescript-eslint/restrict-template-expressions': 'warn',
|
|
'@typescript-eslint/no-useless-constructor': 'warn',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
'no-unused-expressions': 'off',
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
|
'@typescript-eslint/no-useless-constructor': 'warn',
|
|
'prefer-rest-params': 'off',
|
|
},
|
|
};
|