Skip to content

Commit

Permalink
ci: disable auto fix for lint (#3650)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarNestorov authored Feb 6, 2023
1 parent 540cb25 commit 1384cc2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -55,7 +55,7 @@ jobs:
- run:
name: Lint files
command: |
yarn lint
yarn lint-no-fix
typescript:
executor: default
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
path: coverage
destination: coverage
- save_cache:
paths:
paths:
- ./cache/jest
key: jest-cache-{{ .Branch }}

Expand Down Expand Up @@ -149,4 +149,3 @@ workflows:
filters:
branches:
only: main

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 1384cc2

Please sign in to comment.