From 1384cc2bd18333bb9710014733ce196c4eba232c Mon Sep 17 00:00:00 2001 From: Dimitar Nestorov <8790386+DimitarNestorov@users.noreply.github.com> Date: Mon, 6 Feb 2023 12:47:40 +0200 Subject: [PATCH] ci: disable auto fix for lint (#3650) --- .circleci/config.yml | 13 ++++++------- package.json | 5 +++-- src/components/Modal.tsx | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e69f1dfb9..e102203266 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,19 +34,19 @@ jobs: yarn install --frozen-lockfile - save_cache: key: dependencies-{{ checksum "package.json" }} - paths: + paths: - node_modules - save_cache: key: dependencies-docs-{{ checksum "docs/package.json" }} - paths: + paths: - docs/node_modules - save_cache: key: dependencies-example-{{ checksum "example/package.json" }} - paths: + paths: - example/node_modules - persist_to_workspace: root: . - paths: + paths: - . lint: executor: default @@ -55,7 +55,7 @@ jobs: - run: name: Lint files command: | - yarn lint + yarn lint-no-fix typescript: executor: default @@ -83,7 +83,7 @@ jobs: path: coverage destination: coverage - save_cache: - paths: + paths: - ./cache/jest key: jest-cache-{{ .Branch }} @@ -149,4 +149,3 @@ workflows: filters: branches: only: main - diff --git a/package.json b/package.json index c7e1131e41..4de9f8efc1 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ ], "scripts": { "typescript": "tsc --noEmit", - "lint": "eslint --ext '.js,.ts,.tsx' . --fix", + "lint": "yarn lint-no-fix --fix", + "lint-no-fix": "eslint --ext '.js,.ts,.tsx' .", "test": "jest", "prepare": "bob build && node ./scripts/generate-mappings.js", "release": "release-it", @@ -107,7 +108,7 @@ "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-commit": "yarn lint && yarn typescript && yarn test" + "pre-commit": "yarn lint-no-fix && yarn typescript && yarn test" } }, "jest": { diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index 9c73e07ee2..c6584a716e 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -12,9 +12,9 @@ import { import { useSafeAreaInsets } from 'react-native-safe-area-context'; import useEventCallback from 'use-event-callback'; -import type { ThemeProp } from 'src/types'; import { useInternalTheme } from '../core/theming'; +import type { ThemeProp } from '../types'; import { addEventListener } from '../utils/addEventListener'; import useAnimatedValue from '../utils/useAnimatedValue'; import Surface from './Surface';