Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Separate ESLint and Prettier (#3373)

* Disable legacy Prettier ESLint integration

* Run Prettier separately

* Add caching

* Separate -some and -all

* Reduce node inits

authored by

dan and committed by
GitHub
a45da17c 0ff7e71e

+22 -13
+2
.eslintrc.js
··· 15 15 'simple-import-sort', 16 16 ], 17 17 rules: { 18 + // Temporary until https://github.com/facebook/react-native/pull/43756 gets into a release. 19 + 'prettier/prettier': 0, 18 20 'react/no-unescaped-entities': 0, 19 21 'react-native/no-inline-styles': 0, 20 22 'simple-import-sort/imports': [
+2
.github/workflows/lint.yml
··· 24 24 attempt_delay: 2000 25 25 - name: Lint check 26 26 run: yarn lint 27 + - name: Prettier check 28 + run: yarn prettier --check . 27 29 - name: Check & compile i18n 28 30 run: yarn intl:build 29 31 - name: Type check
+3
.gitignore
··· 104 104 # Performance results (Flashlight) 105 105 .perf/ 106 106 107 + # ESLint 108 + .eslintcache 109 + 107 110 # i18n 108 111 src/locale/locales/_build/ 109 112 src/locale/locales/**/*.js
+10 -11
.prettierignore
··· 1 - ios 2 - android 3 - src/third-party 4 - src/app.json 5 - public 6 - /bskyweb/templates 7 - /dist/ 8 - /.watchmanconfig 9 - /app.json 1 + # Ignore everything except the code in src/. 2 + # Based on https://stackoverflow.com/a/70715829/458193 3 + * 4 + !src/**/*.js 5 + !src/**/*.jsx 6 + !src/**/*.ts 7 + !src/**/*.tsx 8 + !*/ 10 9 11 - web/index.html 12 - web-build/* 10 + # More specific ignores go below. 11 + src/locale/locales
+5 -2
package.json
··· 26 26 "test-watch": "NODE_ENV=test jest --watchAll", 27 27 "test-ci": "NODE_ENV=test jest --ci --forceExit --reporters=default --reporters=jest-junit", 28 28 "test-coverage": "NODE_ENV=test jest --coverage", 29 - "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx", 29 + "lint": "yarn eslint --cache --ext .js,.jsx,.ts,.tsx src", 30 30 "typecheck": "tsc --project ./tsconfig.check.json", 31 31 "e2e:mock-server": "./jest/dev-infra/with-test-redis-and-db.sh ts-node --project tsconfig.e2e.json __e2e__/mock-server.ts", 32 32 "e2e:metro": "NODE_ENV=test RN_SRC_EXT=e2e.ts,e2e.tsx expo run:ios", ··· 314 314 ] 315 315 }, 316 316 "lint-staged": { 317 - "*{.js,.jsx,.ts,.tsx}": "yarn eslint --fix" 317 + "*{.js,.jsx,.ts,.tsx}": [ 318 + "eslint --cache --fix", 319 + "prettier --cache --write --ignore-unknown" 320 + ] 318 321 } 319 322 }