Skip to content

Commit 6575da8

Browse files
committed
chore: enhance eslint configuration with additional sorting and react hooks rules
1 parent 9527ccf commit 6575da8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configs/eslint-config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ export default tseslint.config(
122122
}
123123
],
124124

125-
'perfectionist/sort-objects': ['error', { partitionByComment: true }],
125+
'perfectionist/sort-objects': ['error', { partitionByComment: true, partitionByNewLine: true }],
126126

127127
'prettier/prettier': ['warn', {}],
128+
'react-hooks/exhaustive-deps': 'warn',
128129
'react/destructuring-assignment': 0,
129130
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
130131
'react/jsx-uses-react': 'off',
@@ -141,7 +142,6 @@ export default tseslint.config(
141142
'react/prop-types': 0,
142143
'react/react-in-jsx-scope': 'off',
143144
'react/require-default-props': [0, { functions: 'ignore' }],
144-
'react-hooks/exhaustive-deps': 'warn',
145145
'template-curly-spacing': 'off',
146146
'unicorn/explicit-length-check': 'off',
147147
'unicorn/filename-case': [

0 commit comments

Comments
 (0)