mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 06:38:09 -05:00
speed up prettier and eslint (#1295)
* speed up prettier and eslint * throw error * turn off
This commit is contained in:
@@ -34,24 +34,6 @@ module.exports = {
|
||||
],
|
||||
settings: {
|
||||
react: { version: 'detect' },
|
||||
'import/resolver': {
|
||||
typescript: {
|
||||
alwaysTryTypes: true,
|
||||
project: './tsconfig.json',
|
||||
extensions: [
|
||||
'.ts',
|
||||
'.tsx',
|
||||
'.native.ts',
|
||||
'.native.tsx',
|
||||
'.web.ts',
|
||||
'.web.tsx',
|
||||
'.ios.ts',
|
||||
'.ios.tsx',
|
||||
'.android.ts',
|
||||
'.android.tsx',
|
||||
],
|
||||
},
|
||||
},
|
||||
'import/ignore': ['react-native'],
|
||||
},
|
||||
rules: {
|
||||
@@ -169,7 +151,7 @@ module.exports = {
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'no-case-declarations': 'off',
|
||||
'react/no-children-prop': 'off',
|
||||
'import/no-unresolved': 'error',
|
||||
'import/no-unresolved': 'off', // TypeScript handles this
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'no-empty': 'off',
|
||||
|
||||
@@ -188,6 +170,14 @@ module.exports = {
|
||||
'@typescript-eslint/indent': 'off',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
// Enable TypeScript project service for source files for faster parsing
|
||||
files: ['src/**/*.{ts,tsx}'],
|
||||
parserOptions: {
|
||||
project: true,
|
||||
EXPERIMENTAL_useProjectService: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['docs/examples/**/*.ts'],
|
||||
rules: {
|
||||
@@ -218,6 +208,7 @@ module.exports = {
|
||||
},
|
||||
parserOptions: {
|
||||
project: './tsconfig.test.json',
|
||||
EXPERIMENTAL_useProjectService: true,
|
||||
},
|
||||
rules: {
|
||||
// Allow console logging and relaxed typing in tests
|
||||
|
||||
6
app/.gitignore
vendored
6
app/.gitignore
vendored
@@ -74,6 +74,12 @@ yarn-error.log
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# linting cache
|
||||
.eslintcache
|
||||
|
||||
# prettier cache
|
||||
.cache/
|
||||
|
||||
.env
|
||||
**/Pods/
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"clean:xcode": "rm -rf ~/Library/Developer/Xcode/DerivedData",
|
||||
"clean:xcode-env-local": "rm -f ios/.xcode.env.local",
|
||||
"find:type-imports": "node scripts/find-type-import-issues.mjs",
|
||||
"fmt": "yarn prettier --check .",
|
||||
"fmt:fix": "yarn prettier --write .",
|
||||
"fmt": "yarn prettier --check --cache .",
|
||||
"fmt:fix": "yarn prettier --write --cache .",
|
||||
"format": "yarn nice",
|
||||
"ia": "yarn install-app",
|
||||
"imports:fix": "node ./scripts/alias-imports.cjs",
|
||||
@@ -34,8 +34,8 @@
|
||||
"install-app:setup": "yarn install && yarn build:deps && yarn setup:android-deps && cd ios && bundle install && scripts/pod-install-with-cache-fix.sh && cd ..",
|
||||
"ios": "yarn build:deps && node scripts/run-ios-simulator.cjs",
|
||||
"ios:fastlane-debug": "yarn reinstall && bundle exec fastlane --verbose ios internal_test",
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "eslint --fix .",
|
||||
"lint": "eslint . --cache --cache-location .eslintcache",
|
||||
"lint:fix": "eslint --fix . --cache --cache-location .eslintcache",
|
||||
"mobile-deploy": "node scripts/mobile-deploy-confirm.cjs both",
|
||||
"mobile-deploy:android": "node scripts/mobile-deploy-confirm.cjs android",
|
||||
"mobile-deploy:ios": "node scripts/mobile-deploy-confirm.cjs ios",
|
||||
|
||||
Reference in New Issue
Block a user