-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,049 additions
and
6,692 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,6 +1,3 @@ | ||
node_modules/ | ||
.eslintcache | ||
lib/ | ||
!lib/package.json | ||
bundle.js | ||
dist/ |
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test |
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,9 +1,9 @@ | ||
benchmarks/ | ||
test/ | ||
|
||
eslint.config.js | ||
.github | ||
.husky | ||
.editorconfig | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
|
||
CONTRIBUTING.md |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import js from "@eslint/js"; | ||
import eslintConfigPrettier from "eslint-config-prettier"; | ||
import globals from "globals"; | ||
|
||
export default [ | ||
{ | ||
ignores: ["lib"], | ||
}, | ||
js.configs.recommended, | ||
eslintConfigPrettier, | ||
{ | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals["shared-node-browser"], | ||
}, | ||
}, | ||
|
||
rules: { | ||
strict: ["error", "global"], | ||
"no-empty": ["error", { allowEmptyCatch: true }], | ||
"func-names": ["error", "always"], | ||
"operator-linebreak": [ | ||
"error", | ||
"after", | ||
{ overrides: { "?": "before", ":": "before" } }, | ||
], | ||
"capitalized-comments": ["off"], | ||
"func-style": ["error", "declaration"], | ||
|
||
// ECMAScript 6 | ||
// https://eslint.org/docs/rules/#ecmascript-6 | ||
"no-var": ["error"], | ||
"prefer-arrow-callback": ["error"], | ||
"prefer-const": ["error"], | ||
"prefer-destructuring": [ | ||
"error", | ||
{ | ||
array: false, | ||
object: true, | ||
}, | ||
], | ||
"prefer-rest-params": ["error"], | ||
"prefer-spread": ["error"], | ||
// Potentially slower | ||
// "prefer-template": ["error"], | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.