Skip to content

Commit

Permalink
Merge pull request #167 from kwhitley/updating-lint
Browse files Browse the repository at this point in the history
Updating lint
  • Loading branch information
kwhitley committed May 31, 2023
2 parents d387909 + ce8b0ff commit 9c00234
Show file tree
Hide file tree
Showing 12 changed files with 203 additions and 449 deletions.
273 changes: 0 additions & 273 deletions .eslintrc.js

This file was deleted.

27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"linebreak-style": ["error", "unix"],
"prefer-const": "off",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"semi": ["error", "never"]
}
}
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Question
about: Have a question or something to discuss?
title: ''
labels: ''
assignees: ''

---

## Questions & Discussion
To cut down on long-standing topics that are discussion-based, rather than actual issues, please opt for one of the following paths, when possible. These have the benefit of potentially helping others after the issue (here) would have been closed.
1. [Create a Discussion Topic](https://github.com/kwhitley/itty-router/discussions/new/choose)
2. [Discuss on Discord](https://discord.com/channels/832353585802903572)

Cheers!
File renamed without changes.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@
"nested"
],
"scripts": {
"dev": "yarn test",
"lint": "npx eslint src",
"test": "vitest --coverage --reporter verbose",
"test:once": "vitest run",
"coverage": "vitest run --coverage",
"coveralls": "yarn coverage && cat ./coverage/lcov.info | coveralls",
"verify": "echo 'verifying module...' && yarn build && yarn test:once",
"dev": "yarn test",
"prerelease": "yarn verify",
"prebuild": "rimraf dist && mkdir dist",
"build:core": "rollup -c",
"build:extras": "rollup --config rollup.config.extras.mjs",
"prebuild": "rimraf dist && mkdir dist && yarn coverage && yarn lint",
"build": "rollup -c",
"release": "release --tag --push --patch --src=dist",
"runtime:bun": "bun example/bun.ts",
Expand All @@ -51,12 +49,13 @@
"@rollup/plugin-typescript": "^11.1.1",
"@skypack/package-check": "^0.2.2",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitejs/plugin-vue": "^4.2.3",
"@vitest/coverage-c8": "^0.31.3",
"@whatwg-node/server": "^0.8.1",
"coveralls": "^3.1.1",
"eslint": "^8.41.0",
"eslint-plugin-jest": "^27.2.1",
"fetch-mock": "^9.11.0",
"fs-extra": "^11.1.1",
"globby": "^13.1.4",
Expand Down
Loading

0 comments on commit 9c00234

Please sign in to comment.