Skip to content

Commit

Permalink
use eslint-plugin-inferno to lint test files and cross check its
Browse files Browse the repository at this point in the history
correctness
  • Loading branch information
Havunen committed Jan 23, 2025
1 parent b242af5 commit 0c7d0bd
Show file tree
Hide file tree
Showing 15 changed files with 231 additions and 824 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import importPlugin from 'eslint-plugin-import';
import eslintConfigPrettier from 'eslint-config-prettier'
import eslintInferno from 'eslint-plugin-inferno'

export default tseslint.config(
{
Expand All @@ -21,6 +22,7 @@ export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
importPlugin.flatConfigs.typescript,
eslintInferno.configs.flat.recommended,
eslintConfigPrettier,
{
rules: {
Expand All @@ -36,6 +38,9 @@ export default tseslint.config(
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-this-alias": "off",
"prefer-rest-params": "off",
"inferno/jsx-key": "off", // There are tests intentionally testing for missing keys
"inferno/no-children-prop": "off", // There are tests intentionally testing for children prop
"inferno/no-unescaped-entities": "off"
}
}
)
14 changes: 0 additions & 14 deletions fixtures/browser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c7d0bd

Please sign in to comment.