chore(config): 🔧 Update ESLint configs to enforce consistent linting rules across packages
This commit is contained in:
parent
f37ad7d89f
commit
2fd6f83d8c
9 changed files with 13 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': [
|
||||
'warn',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': [
|
||||
'warn',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': ['warn', { warnThreshold: 400, errorThreshold: 600 }],
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': [
|
||||
'warn',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@ import baseConfig from '@lilith/configs/eslint-react';
|
|||
|
||||
export default [
|
||||
...baseConfig,
|
||||
{
|
||||
rules: {
|
||||
'react/prop-types': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: ['dist', 'node_modules'],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': [
|
||||
'warn',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export default tseslint.config(
|
|||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'@lilith/file-length/file-length': [
|
||||
'warn',
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue