Skip to content

Commit

Permalink
Merge branch 'add-react-linter-rules'
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Oct 22, 2024
2 parents 6533665 + cf62ffd commit 1ec8c9d
Show file tree
Hide file tree
Showing 84 changed files with 2,530 additions and 841 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/git-commit-message-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
# This action defaults to 50 char subjects, but 72 is fine.
max-subject-line-length: '72'
# The action's wordlist is a bit short. Add more accepted verbs
additional-verbs: 'tidy, wrap, obfuscate, bias'
additional-verbs: 'tidy, wrap, obfuscate, bias, prohibit, forbid'
6 changes: 5 additions & 1 deletion gui/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from '@eslint/js';
import prettier from 'eslint-plugin-prettier/recommended';
import react from 'eslint-plugin-react';
import reactcompiler from 'eslint-plugin-react-compiler';
import reactHooks from 'eslint-plugin-react-hooks';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import globals from 'globals';
Expand Down Expand Up @@ -130,6 +131,7 @@ export default tseslint.config(
plugins: {
'simple-import-sort': simpleImportSort,
'react-hooks': reactHooks,
'react-compiler': reactcompiler,
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
Expand All @@ -143,10 +145,12 @@ export default tseslint.config(
'no-return-await': 'error',
'react/jsx-no-bind': 'error',
'@typescript-eslint/naming-convention': ['error', ...namingConvention],
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': false }],
'@typescript-eslint/ban-ts-comment': 'error',
'simple-import-sort/imports': 'error',

'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'react-compiler/react-compiler': 'error',

'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand Down
Loading

0 comments on commit 1ec8c9d

Please sign in to comment.