mirror of
https://github.com/luxexchange/eslint-config.git
synced 2026-10-30 18:13:47 +00:00
42 lines
810 B
JavaScript
42 lines
810 B
JavaScript
const biomeSupportedRules = require('./biome-supported')
|
|
|
|
module.exports = {
|
|
root: true,
|
|
extends: ['@luxfi/eslint-config/native', '@luxfi/eslint-config/webPlatform'],
|
|
ignorePatterns: [
|
|
'node_modules',
|
|
'.turbo',
|
|
'.eslintrc.js',
|
|
'vitest.config.ts',
|
|
'codegen.ts',
|
|
'.nx',
|
|
'scripts',
|
|
'dist',
|
|
'src/**/__generated__',
|
|
],
|
|
parserOptions: {
|
|
project: 'tsconfig.lint.json',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**'],
|
|
rules: {
|
|
// Disable all ESLint rules that have been migrated to Biome
|
|
...biomeSupportedRules,
|
|
},
|
|
},
|
|
{
|
|
files: ['src/index.ts'],
|
|
rules: {
|
|
'check-file/no-index': 'off',
|
|
},
|
|
},
|
|
],
|
|
rules: {},
|
|
}
|