@btc-vision/opnet-transform
Version:
OP_NET AssemblyScript transformer
44 lines (41 loc) • 1.7 kB
JavaScript
// @ts-check
import tseslint from 'typescript-eslint';
import eslint from '@eslint/js';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigDirName: import.meta.dirname,
},
},
rules: {
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-empty': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/only-throw-error': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/unbound-method': 'warn',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'no-loss-of-precision': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
'prefer-const': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
},
},
{
files: ['**/*.js'],
...tseslint.configs.disableTypeChecked,
},
);