Skip to content

Commit

Permalink
fix(eslint): Add excluded paths
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jun 28, 2024
1 parent 98c2ddc commit 2ad63aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrations/solid/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function App() {
<>
<h1>Vite + Solid</h1>
<div class="card">
<button onClick={() => setCount((count) => count + 1)}>
<button onClick={() => setCount((c) => c + 1)}>
count is {count()}
</button>
<p>
Expand Down
14 changes: 13 additions & 1 deletion src/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ import { javascriptRules } from './javascript.js'
import { importRules } from './import.js'
import { typescriptRules } from './typescript.js'

const GLOB_INCLUDE = ['**/*.{js,svelte,ts,tsx,vue}']

const GLOB_EXCLUDE = [
'**/.nx/**',
'**/.svelte-kit/**',
'**/build/**',
'**/coverage/**',
'**/dist/**',
'**/snap/**',
]

/** @type {import('eslint').Linter.FlatConfig[]} */
export const tanstackConfig = [
{
name: 'tanstack/setup',
files: ['**/*.{js,svelte,ts,tsx,vue}'],
files: GLOB_INCLUDE,
ignores: GLOB_EXCLUDE,
languageOptions: {
sourceType: 'module',
ecmaVersion: 2020,
Expand Down

0 comments on commit 2ad63aa

Please sign in to comment.