Skip to content

Commit

Permalink
fix: Fix invalid solid config.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Sep 29, 2022
1 parent e22851e commit ddbd4fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/eslint-config/src/solid.ts
@@ -1,6 +1,6 @@
import type eslint from 'eslint';

const config: eslint.Linter.ConfigOverride = {
const solidConfig: eslint.Linter.ConfigOverride = {
files: ['*.ts', '*.tsx'],
plugins: ['solid'],
extends: [require.resolve('./browser.js'), 'plugin:solid/typescript'],
Expand All @@ -11,4 +11,10 @@ const config: eslint.Linter.ConfigOverride = {
},
};

// We only want to apply the React plugin and rules
// to TSX files. Not the entire codebase.
const config: eslint.Linter.Config = {
overrides: [solidConfig],
};

export default config;

0 comments on commit ddbd4fc

Please sign in to comment.