UNPKG

@sideid/id-profanity-filter

Version:

Library filter kata kotor dalam Bahasa Indonesia

41 lines (37 loc) 1.07 kB
import tseslint from '@typescript-eslint/eslint-plugin'; import tsParser from '@typescript-eslint/parser'; import eslintConfigPrettier from 'eslint-config-prettier'; export default [ { ignores: ['dist/', 'node_modules/', '*.js', '*.mjs', '*.d.ts'], }, { languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: 2020, sourceType: 'module', project: './tsconfig.json', }, }, plugins: { '@typescript-eslint': tseslint, }, 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', }, }, eslintConfigPrettier, ];