Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Nov 27, 2020
1 parent bd030d6 commit f98044c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@voxpelli",
"root": true,
"rules": {
"semi": ["error", "never"]
}
}
20 changes: 1 addition & 19 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,8 @@ name: Static code analysis
on: [push]

jobs:
lint:
name: Linting
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [14]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: npm install
run: npm install
- name: Linting
run: npm run lint
misc:
name: All remaining static analysis
name: Static analysis
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"scripts": {
"check:dependencies": "node cli.js . --no-dev",
"check:node-versions": "installed-check -i installed-check -i standard",
"check:lint": "eslint .",
"check": "run-p check:*",
"lint": "standard",
"test-cli:custom-detective": "node cli.js test/ -e js:detective-cjs",
"test-cli:glob": "node cli.js 'test/**/*.js' --no-default-entries",
"test-cli:multi-glob": "node cli.js test/foo.js 'test/*.js' \"test/donkey/*.js\" --no-default-entries",
"test-cli:main-as-file": "node cli.js test/index.js",
"test-cli:simple": "node cli.js test/",
"test-cli": "run-p test-cli:*",
"test": "run-s lint test-cli check"
"test": "run-s check test-cli"
},
"husky": {
"hooks": {
Expand All @@ -41,11 +41,22 @@
"verror": "^1.10.0"
},
"devDependencies": {
"@voxpelli/eslint-config": "9.0.0",
"@voxpelli/eslint-config-jsdoc-ts": "^0.3.1",
"detective-cjs": "^3.0.0",
"eslint": "^7.12.1",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-es": "^4.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.3",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-unicorn": "^23.0.0",
"husky": "^4.0.3",
"installed-check": "^4.0.0-0",
"npm-run-all": "^4.1.5",
"standard": "^16.0.3"
"npm-run-all": "^4.1.5"
},
"directories": {
"test": "test"
Expand Down

0 comments on commit f98044c

Please sign in to comment.