Update typescript-eslint, fix up eslint setup (#10150)
This commit is contained in:
+1
-1
@@ -47,7 +47,6 @@ export default defineConfig(
|
|||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
tseslint.configs.recommendedTypeChecked,
|
tseslint.configs.recommendedTypeChecked,
|
||||||
reactHooks.configs.flat.recommended,
|
reactHooks.configs.flat.recommended,
|
||||||
// @ts-expect-error https://github.com/un-ts/eslint-plugin-import-x/issues/439
|
|
||||||
importX.flatConfigs.recommended,
|
importX.flatConfigs.recommended,
|
||||||
importX.flatConfigs.typescript,
|
importX.flatConfigs.typescript,
|
||||||
importX.flatConfigs['react-native'],
|
importX.flatConfigs['react-native'],
|
||||||
@@ -62,6 +61,7 @@ export default defineConfig(
|
|||||||
'react-native': reactNative,
|
'react-native': reactNative,
|
||||||
'react-native-a11y': reactNativeA11y,
|
'react-native-a11y': reactNativeA11y,
|
||||||
'simple-import-sort': simpleImportSort,
|
'simple-import-sort': simpleImportSort,
|
||||||
|
// @ts-expect-error - not sure why
|
||||||
lingui,
|
lingui,
|
||||||
'react-compiler': reactCompiler,
|
'react-compiler': reactCompiler,
|
||||||
'bsky-internal': bskyInternal,
|
'bsky-internal': bskyInternal,
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ function getTagName(node) {
|
|||||||
return reversedIdentifiers.reverse().join('.')
|
return reversedIdentifiers.reverse().join('.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @type {import('eslint').Rule.RuleModule} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
meta: {
|
meta: {
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ const BANNED_IMPORTS = [
|
|||||||
'@fortawesome/free-solid-svg-icons',
|
'@fortawesome/free-solid-svg-icons',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
/** @type {import('eslint').Rule.RuleModule} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
meta: {
|
meta: {
|
||||||
type: 'suggestion',
|
type: 'suggestion',
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ const BANNED_IMPORT_PREFIXES = [
|
|||||||
'view/',
|
'view/',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
/** @type {import('eslint').Rule.RuleModule} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
meta: {
|
meta: {
|
||||||
type: 'suggestion',
|
type: 'suggestion',
|
||||||
|
|||||||
+3
-4
@@ -246,7 +246,6 @@
|
|||||||
"@lingui/cli": "^5.9.2",
|
"@lingui/cli": "^5.9.2",
|
||||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
||||||
"@react-native/babel-preset": "0.81.5",
|
"@react-native/babel-preset": "0.81.5",
|
||||||
"@react-native/eslint-config": "^0.81.5",
|
|
||||||
"@react-native/typescript-config": "^0.81.5",
|
"@react-native/typescript-config": "^0.81.5",
|
||||||
"@sentry/webpack-plugin": "^3.2.2",
|
"@sentry/webpack-plugin": "^3.2.2",
|
||||||
"@testing-library/react-native": "^13.2.0",
|
"@testing-library/react-native": "^13.2.0",
|
||||||
@@ -264,8 +263,8 @@
|
|||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.2",
|
||||||
"eslint-import-resolver-typescript": "^4.4.4",
|
"eslint-import-resolver-typescript": "^4.4.4",
|
||||||
"eslint-plugin-bsky-internal": "link:./eslint",
|
"eslint-plugin-bsky-internal": "link:./eslint",
|
||||||
"eslint-plugin-import-x": "^4.16.1",
|
"eslint-plugin-import-x": "^4.16.2",
|
||||||
"eslint-plugin-lingui": "^0.11.0",
|
"eslint-plugin-lingui": "^0.12.0",
|
||||||
"eslint-plugin-react": "^7.37.5",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
@@ -287,7 +286,7 @@
|
|||||||
"svgo": "^3.3.2",
|
"svgo": "^3.3.2",
|
||||||
"ts-plugin-sort-import-suggestions": "^1.0.4",
|
"ts-plugin-sort-import-suggestions": "^1.0.4",
|
||||||
"typescript": "^6.0.2",
|
"typescript": "^6.0.2",
|
||||||
"typescript-eslint": "^8.57.2",
|
"typescript-eslint": "^8.58.0",
|
||||||
"webpack-bundle-analyzer": "^4.10.1"
|
"webpack-bundle-analyzer": "^4.10.1"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user