Skip to content

Commit

Permalink
🔧 update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Sep 9, 2024
1 parent 5cf4b13 commit 6b44611
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 1,389 deletions.
60 changes: 0 additions & 60 deletions .eslintrc.js

This file was deleted.

14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: '16'
cache: 'yarn'
version: 9
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- uses: actions/cache@v1
with:
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }}
Expand All @@ -27,12 +31,12 @@ jobs:
- name: Install dependencies # TODO: move to requirements.txt
run: |
pip install flake8 black isort
yarn install
pnpm install
- name: Run flake8
run: flake8 froide_campaign --statistics
- name: Run black
run: black --check froide_campaign
- name: Run isort
run: isort --check froide_campaign
- name: Run eslint
run: yarn lint
run: pnpm lint
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import config from '@okfde/eslint-config-froide'
export default config
22 changes: 5 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,12 @@
},
"homepage": "https://github.com/okfde/froide-campaign#readme",
"devDependencies": {
"@types/leaflet": "^1.7.11",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"@vue/eslint-config-typescript": "^11.0.3",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-vue": "^9.9.0",
"prettier": "^2.8.4",
"prettier-config-standard": "^5.0.0",
"typescript": "^4.9.5",
"vue-eslint-parser": "^9.3.1"
"@okfde/eslint-config-froide": "github:okfde/eslint-config-froide",
"typescript": "^4.9.5"
},
"dependencies": {
"@turf/bbox": "^6.0.1",
"@types/leaflet": "^1.7.11",
"@vue-leaflet/vue-leaflet": "^0.8.3",
"deepmerge": "^4.2.2",
"froide": "okfde/froide",
Expand All @@ -51,5 +38,6 @@
},
"peerDependencies": {
"froide": "github:okfde/froide"
}
},
"prettier": "prettier-config-standard"
}
Loading

0 comments on commit 6b44611

Please sign in to comment.