mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
47 lines
904 B
JavaScript
47 lines
904 B
JavaScript
const { resolve } = require('node:path');
|
|
|
|
const project = resolve(process.cwd(), 'tsconfig.json');
|
|
|
|
/*
|
|
* This is a custom ESLint configuration for use with
|
|
* internal (bundled by their consumer) libraries
|
|
* that utilize React.
|
|
*/
|
|
|
|
/** @type {import('eslint').Linter.Config} */
|
|
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
'eslint-config-turbo',
|
|
],
|
|
plugins: ['@typescript-eslint'],
|
|
globals: {
|
|
React: true,
|
|
JSX: true,
|
|
},
|
|
env: {
|
|
browser: true,
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {
|
|
project,
|
|
},
|
|
},
|
|
},
|
|
ignorePatterns: [
|
|
// Ignore dotfiles
|
|
'.*.js',
|
|
'node_modules/',
|
|
'dist/',
|
|
'coverage/',
|
|
],
|
|
overrides: [
|
|
// Force ESLint to detect .tsx files
|
|
{ files: ['*.js?(x)', '*.ts?(x)'] },
|
|
],
|
|
};
|