Skip to content

Commit

Permalink
Remove lint hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Apr 6, 2020
1 parent d56403c commit 4fd5111
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 353 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Lint

on: push
on:
- pull_request
- push

jobs:
run-linters:
name: Run linters
lint:
name: Lint
runs-on: ubuntu-latest

steps:
Expand All @@ -20,13 +22,7 @@ jobs:
run: yarn install

- name: Run linters
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
eslint: true
eslint_args: --ignore-path ./.gitignore
eslint_extensions: ts,tsx
prettier: true
prettier_args: --ignore-path ./.gitignore
stylelint: true
stylelint_args: --ignore-path ./.gitignore
run: |
yarn lint:css
yarn lint:ts
yarn format
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Test

on: [push, pull_request]
on:
- push
- pull_request

jobs:
test:
Expand Down
26 changes: 3 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"test": "run-s test:*",
"test:jest": "cross-env TZ=GMT jest",
"test:types": "tsc --project ./website --noEmit",
"lint:css": "stylelint --fix --max-warnings 0",
"lint:ts": "eslint --ext .ts,.tsx --fix --max-warnings 0",
"format": "prettier --write"
"lint:css": "stylelint --fix --ignore-path ./.gitignore --max-warnings 0 '**/*.{css,sass,scss}'",
"lint:ts": "eslint --ext .ts,.tsx --fix --ignore-path ./.gitignore --max-warnings 0 '**/*.{ts,tsx}'",
"format": "prettier --ignore-path ./.gitignore --write '**/*.{css,html,js,json,jsx,less,md,scss,ts,tsx,vue,yaml,yml}'"
},
"dependencies": {
"@svgr/webpack": "^5.3.0",
Expand Down Expand Up @@ -112,10 +112,8 @@
"eslint-plugin-react-hooks": "^2.5.1",
"file-loader": "^6.0.0",
"html-webpack-plugin": "^4.0.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"license-checker-webpack-plugin": "^0.1.4",
"lint-staged": "^10.0.9",
"mockdate": "^2.0.3",
"npm-run-all": "^4.1.3",
"prettier": "^1.18.2",
Expand Down Expand Up @@ -179,24 +177,6 @@
"extends": "@samuelmeuli/stylelint-config"
},
"prettier": "@samuelmeuli/prettier-config",
"lint-staged": {
"*.{ts,tsx}": [
"yarn lint:ts",
"yarn format"
],
"*.{css,sass,scss}": [
"yarn lint:css",
"yarn format"
],
"*.{html,js,json,jsx,md,vue,yaml,yml}": [
"yarn format"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn test && lint-staged"
}
},
"build": {
"appId": "com.samuelmeuli.minidiary",
"files": [
Expand Down
Loading

0 comments on commit 4fd5111

Please sign in to comment.