Skip to content

Commit

Permalink
add dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Mar 28, 2022
1 parent a6cadf8 commit c244dd8
Show file tree
Hide file tree
Showing 4 changed files with 1,468 additions and 24 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
env: {
commonjs: true,
es2021: true,
"jest/globals": true,
node: true,
},
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: "latest",
},
plugins: ["jest", "prettier"],
rules: {
"prettier/prettier": "error",
},
};
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
cache: "yarn"
- run: yarn install
- run: cd example && yarn install
- run: yarn lint
- run: yarn test
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
"license": "MIT",
"bin": "./generate.js",
"devDependencies": {
"jest": "^27.5.1"
"eslint": "^8.12.0",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"prettier": "^2.6.1",
"standard-version": "^9.3.2"
},
"peerDependencies": {
"next": "^12.0.0"
Expand All @@ -26,6 +31,9 @@
"url": "https://github.com/geops/next-nginx-routes.git"
},
"scripts": {
"test": "jest"
"format": "prettier --write *.js",
"lint": "eslint *.js",
"test": "jest",
"release": "standard-version"
}
}
Loading

0 comments on commit c244dd8

Please sign in to comment.