Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move eslint to npm scripts #819

Merged
merged 2 commits into from Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -8,8 +8,29 @@ on:

env:
FORCE_COLOR: 2
NODE_LINT: 14 # The Node.js version to run lint
xzyfer marked this conversation as resolved.
Show resolved Hide resolved

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_LINT }}
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Lint
run: npm run lint

test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -7,11 +7,14 @@
"node": ">=12"
},
"scripts": {
"test": "mocha test"
"lint": "eslint --report-unused-disable-directives --ignore-path .gitignore .",
"fix": "npm run eslint -- --fix",
"mocha": "mocha",
xzyfer marked this conversation as resolved.
Show resolved Hide resolved
"test": "mocha"
},
"repository": {
"type": "git",
"url": "git://github.com/dlmanning/gulp-sass"
"url": "git+https://github.com/dlmanning/gulp-sass.git"
xzyfer marked this conversation as resolved.
Show resolved Hide resolved
},
"keywords": [
"gulpplugin",
Expand All @@ -23,6 +26,7 @@
"bugs": {
"url": "https://github.com/dlmanning/gulp-sass/issues"
},
"homepage": "https://github.com/dlmanning/gulp-sass#readme",
"files": [
"index.js"
],
Expand Down
46 changes: 0 additions & 46 deletions test/lint.js

This file was deleted.