chore: fix eslint crashing issues (#1951)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
metro.config.js
|
||||
html/**/*
|
||||
node_modules
|
||||
ios
|
||||
e2e
|
||||
android
|
||||
fastlane
|
||||
WebFrame
|
||||
__tests__
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
13
packages/mobile/.eslintrc.js
Normal file
13
packages/mobile/.eslintrc.js
Normal 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',
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user