-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'api-status-task' of https://github.com/GIScience/sketch…
…-map-tool into api-status-task
- Loading branch information
Showing
3 changed files
with
64 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
name: JS and CSS Linting | ||
on: [push, pull_request] | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
linting: | ||
name: JS and CSS Linting | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Linters | ||
run: | | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
npm install [email protected] | ||
- name: Run ESLint | ||
run: npx eslint . | ||
- name: Run Stylelint | ||
run: npx stylelint "**/*.css" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ repos: | |
- id: ruff | ||
# Javascript | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: "v8.24.0" | ||
rev: "v8.51.0" | ||
hooks: | ||
- id: eslint | ||
additional_dependencies: ['eslint@8.24.0', 'eslint-plugin-import@2.26.0', '[email protected]'] | ||
additional_dependencies: ['eslint@8.51.0', 'eslint-plugin-import@2.28.1', '[email protected]'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
{ | ||
"name": "sketch-map-tool", | ||
"version": "1.0.0", | ||
"description": "", | ||
"nodemonConfig": { | ||
"watch": [ | ||
"client-src", | ||
"sketch_map_tool/templates", | ||
"esbuild.js" | ||
], | ||
"ext": "js,css,html", | ||
"exec": "npm run build" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint-css": "stylelint '**/*.css'", | ||
"lint-js": "eslint .", | ||
"lint": "npm run lint-css && npm run lint-js", | ||
"lint-css:fix": "npm run lint-css -- --fix", | ||
"lint-js:fix": "npm run lint-js -- --fix", | ||
"lint:fix": "npm run lint-css:fix && npm run lint-js:fix", | ||
"clean": "rimraf ./sketch_map_tool/static/bundles", | ||
"build": "npm run clean && node esbuild.js", | ||
"watch": "nodemon" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/GIScience/sketch-map-tool.git" | ||
}, | ||
"author": "HeiGIT <[email protected]>", | ||
"license": "AGPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/GIScience/sketch-map-tool/issues" | ||
}, | ||
"homepage": "https://github.com/GIScience/sketch-map-tool#readme", | ||
"devDependencies": { | ||
"esbuild": "^0.19.4", | ||
"eslint": "8.10.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"nodemon": "^3.0.1", | ||
"rimraf": "^5.0.5", | ||
"stylelint": "14.8.3", | ||
"stylelint-config-standard": "25.0.0" | ||
}, | ||
"dependencies": { | ||
"@giscience/ol-print-layout-control": "^1.0.2", | ||
"@picocss/pico": "^1.5.10", | ||
"filebokz": "^0.1.3", | ||
"ol": "^8.1.0", | ||
"ol-geocoder": "^4.3.1" | ||
} | ||
"name": "sketch-map-tool", | ||
"version": "1.0.0", | ||
"description": "", | ||
"nodemonConfig": { | ||
"watch": [ | ||
"client-src", | ||
"sketch_map_tool/templates", | ||
"esbuild.js" | ||
], | ||
"ext": "js,css,html", | ||
"exec": "npm run build" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint-css": "stylelint '**/*.css'", | ||
"lint-js": "eslint .", | ||
"lint": "npm run lint-css && npm run lint-js", | ||
"lint-css:fix": "npm run lint-css -- --fix", | ||
"lint-js:fix": "npm run lint-js -- --fix", | ||
"lint:fix": "npm run lint-css:fix && npm run lint-js:fix", | ||
"clean": "rimraf ./sketch_map_tool/static/bundles", | ||
"build": "npm run clean && node esbuild.js", | ||
"watch": "nodemon" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/GIScience/sketch-map-tool.git" | ||
}, | ||
"author": "HeiGIT <[email protected]>", | ||
"license": "AGPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/GIScience/sketch-map-tool/issues" | ||
}, | ||
"homepage": "https://github.com/GIScience/sketch-map-tool#readme", | ||
"devDependencies": { | ||
"esbuild": "^0.19.4", | ||
"eslint": "8.51.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.28.1", | ||
"nodemon": "^3.0.1", | ||
"rimraf": "^5.0.5", | ||
"stylelint": "15.10.3", | ||
"stylelint-config-standard": "34.0.0" | ||
}, | ||
"dependencies": { | ||
"@giscience/ol-print-layout-control": "^1.0.2", | ||
"@picocss/pico": "^1.5.10", | ||
"filebokz": "^0.1.3", | ||
"ol": "^8.1.0", | ||
"ol-geocoder": "^4.3.1" | ||
} | ||
} |