UNPKG

@cto.af/eslint-config

Version:
35 lines (31 loc) 674 B
import {rules} from './rules/ts.js'; import tslint from 'typescript-eslint'; const blob = { files: ['**/*.ts'], ignores: [ 'coverage/**', 'node_modules/**', 'docs/**', ], settings: { n: { // Ensure that importing real .js files works typescriptExtensionMap: [ ['', '.js'], ['.js', '.js'], ['.ts', '.js'], ['.cts', '.cjs'], ['.mts', '.mjs'], ['.tsx', '.js'], ], }, }, ...tslint.configs.base, rules, }; blob.languageOptions.parserOptions = { // It's undefined for now, but just in case. ...blob.languageOptions.parserOptions, project: true, }; export default [blob];