chore: fix eslint crashing issues (#1951)

This commit is contained in:
Mo
2022-11-04 17:09:54 -05:00
committed by GitHub
parent 5aa36ff071
commit 417c90a6f2
118 changed files with 315 additions and 424 deletions

View File

@@ -1,9 +0,0 @@
metro.config.js
html/**/*
node_modules
ios
e2e
android
fastlane
WebFrame
__tests__

View File

@@ -1,14 +0,0 @@
{
"env": {
"node": true,
"commonjs": true
},
"extends": ["@react-native-community", "plugin:react-hooks/recommended", "../../.eslintrc.json"],
"rules": {
"no-console": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-var-requires": "off",
"eqeqeq": ["off"],
"no-void": ["off"]
}
}

View File

@@ -0,0 +1,13 @@
module.exports = {
root: true,
extends: ['../../common.eslintrc.js', 'plugin:react-hooks/recommended'],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
ignorePatterns: ['**/*.spec.ts', '__mocks__'],
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier'],
rules: {
'no-console': 'warn',
}
}

View File

@@ -17,7 +17,7 @@
"ios-dev": "react-native run-ios --scheme StandardNotesDev",
"ios-prod": "react-native run-ios --scheme StandardNotes",
"lint:fix": "yarn lint --fix",
"lint": "yarn tsc && yarn eslint . --ext .ts,.tsx",
"lint": "yarn eslint src --ext .ts,.tsx",
"pods": "yarn install:pods",
"start": "react-native start",
"tsc": "tsc --noEmit",

View File

@@ -17,16 +17,5 @@
"target": "esnext",
"typeRoots": ["node_modules/@types", "./src/Types/*"]
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js",
"e2e",
"html",
"android",
"WebFrame",
"ios",
"fastlane"
]
"include": ["src"]
}