UNPKG

@sideid/id-profanity-filter

Version:

Library filter kata kotor dalam Bahasa Indonesia

45 lines (41 loc) 1.23 kB
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2020, sourceType: 'module', project: './tsconfig.json', }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', // Disables ESLint rules that might conflict with Prettier ], plugins: ['@typescript-eslint'], env: { node: true, jest: true, }, rules: { // Enforce consistent code style '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], // Allow certain TypeScript patterns '@typescript-eslint/no-non-null-assertion': 'off', // General ESLint rules 'no-console': ['warn', { allow: ['warn', 'error'] }], 'prefer-const': 'warn', 'no-var': 'error', // Make sure imports are properly sorted 'sort-imports': [ 'off', { ignoreCase: false, ignoreDeclarationSort: true, ignoreMemberSort: false, memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], }, ], }, ignorePatterns: ['dist/', 'node_modules/', '*.js', '*.d.ts'], };