UNPKG

@alkafinance/eslint-config-typescript

Version:

Alka ESLint config for our Typescript codebases

42 lines (41 loc) 950 B
/** @type {import('@alkafinance/eslint-config/eslint').ESLintConfig} */ module.exports = { settings: { 'import/resolver': { typescript: { directory: process.cwd(), extensions: [ '.js', '.jsx', '.web.js', '.web.jsx', '.ts', '.tsx', '.web.ts', '.web.tsx', '.json', ], }, }, 'import/extensions': ['.js', 'jsx', '.ts', '.tsx'], }, rules: { // https://github.com/benmosher/eslint-plugin-import 'import/extensions': [ 'error', 'always', { js: 'never', jsx: 'never', 'web.js': 'never', 'web.jsx': 'never', ts: 'never', tsx: 'never', 'web.ts': 'never', 'web.tsx': 'never', }, ], // https://github.com/yannickcr/eslint-plugin-react 'react/jsx-filename-extension': ['error', {extensions: ['.tsx']}], }, };