-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* import eslint config * feat: import penumbra config and ignore current errors and warnings * feat: fix configs version * feat: configs on npm * feat: configs on npm * fix: missing package --------- Co-authored-by: Atris <vacekj@outlook.com>
- Loading branch information
Showing
13 changed files
with
689 additions
and
780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,64 @@ | ||
import { penumbraEslintConfig } from '@repo/eslint-config'; | ||
import { config, parser } from 'typescript-eslint'; | ||
|
||
export default config({ | ||
...penumbraEslintConfig, | ||
languageOptions: { | ||
parser, | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
import eslintConfig from '@penumbra-zone/configs/eslint'; | ||
|
||
export default [ | ||
...eslintConfig, | ||
{ | ||
name: 'custom-local-ignores', | ||
rules: { | ||
// Existing disabled rules | ||
'no-nested-ternary': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
|
||
// Chrome-related deprecation warnings | ||
'@typescript-eslint/no-deprecated': 'off', | ||
|
||
// React Hooks warnings | ||
'react-hooks/exhaustive-deps': 'off', | ||
|
||
// Global object usage | ||
'no-restricted-globals': 'off', | ||
|
||
// Fragment usage | ||
'react/jsx-no-useless-fragment': 'off', | ||
|
||
// Parameter reassignment | ||
'no-param-reassign': 'off', | ||
|
||
// Import duplicates | ||
'import/no-duplicates': 'off', | ||
|
||
// Unused vars and expressions | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
|
||
// Await and promise-related rules | ||
'@typescript-eslint/await-thenable': 'off', | ||
'no-promise-executor-return': 'off', | ||
|
||
// Type parameter rules | ||
'@typescript-eslint/no-unnecessary-type-parameters': 'off', | ||
'@typescript-eslint/no-duplicate-type-constituents': 'off', | ||
|
||
// Switch exhaustiveness | ||
'@typescript-eslint/switch-exhaustiveness-check': 'off', | ||
|
||
// Console statements | ||
'no-console': 'off', | ||
|
||
// Comment formatting | ||
'spaced-comment': 'off', | ||
'@eslint-community/eslint-comments/require-description': 'off', | ||
|
||
// Catch callback type | ||
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', | ||
|
||
// Global definition (for tests) | ||
'no-undef': 'off', | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}, | ||
}); | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
import { penumbraEslintConfig } from '@repo/eslint-config'; | ||
import { config, parser } from 'typescript-eslint'; | ||
import eslintConfig from '@penumbra-zone/configs/eslint'; | ||
|
||
export default config({ | ||
...penumbraEslintConfig, | ||
languageOptions: { | ||
parser, | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}); | ||
export default eslintConfig; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
import { penumbraEslintConfig } from '@repo/eslint-config'; | ||
import { config, parser } from 'typescript-eslint'; | ||
import eslintConfig from '@penumbra-zone/configs/eslint'; | ||
|
||
export default config({ | ||
...penumbraEslintConfig, | ||
languageOptions: { | ||
parser, | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}); | ||
export default eslintConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,47 @@ | ||
import { penumbraEslintConfig } from '@repo/eslint-config'; | ||
import { config, parser } from 'typescript-eslint'; | ||
|
||
export default config({ | ||
...penumbraEslintConfig, | ||
languageOptions: { | ||
parser, | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
import eslintConfig from '@penumbra-zone/configs/eslint'; | ||
|
||
export default [ | ||
...eslintConfig, | ||
{ | ||
name: 'custom-local-ignores', | ||
rules: { | ||
// Existing disabled rules | ||
'no-nested-ternary': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
|
||
// Fragment-related rules | ||
'react/jsx-no-useless-fragment': 'off', | ||
|
||
// Parameter reassignment | ||
'no-param-reassign': 'off', | ||
|
||
// Comment formatting and descriptions | ||
'@eslint-community/eslint-comments/require-description': 'off', | ||
'spaced-comment': 'off', | ||
|
||
// Tailwind CSS rules | ||
'tailwindcss/no-unnecessary-arbitrary-value': 'off', | ||
|
||
// Bitwise operations | ||
'no-bitwise': 'off', | ||
|
||
// React Hooks dependencies | ||
'react-hooks/exhaustive-deps': 'off', | ||
|
||
// Switch exhaustiveness | ||
'@typescript-eslint/switch-exhaustiveness-check': 'off', | ||
|
||
// Deprecation warnings | ||
'@typescript-eslint/no-deprecated': 'off', | ||
|
||
// Type conversion and string representation | ||
'@typescript-eslint/no-base-to-string': 'off', | ||
}, | ||
settings: { | ||
// Add React version to prevent the warning | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}, | ||
}); | ||
]; |
Oops, something went wrong.