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
1,278 changed files
with
35,746 additions
and
32,358 deletions.
There are no files selected for viewing
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,29 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: [ | ||
'@commitlint/config-conventional', // scoped packages are not prefixed | ||
], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'proposal', | ||
'refactor', | ||
'release', | ||
'revert', | ||
'style', | ||
'test', | ||
'wip', | ||
], | ||
], | ||
}, | ||
}; |
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,5 @@ | ||
coverage/ | ||
coverage-merged/ | ||
dist/ | ||
node_modules/ | ||
types/ |
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,98 @@ | ||
{ | ||
"extends": ["airbnb-base", "prettier"], | ||
"root": true, | ||
"env": { | ||
"amd": true, | ||
"browser": true, | ||
"es6": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"globals": { | ||
"BigInt": "readonly", | ||
"BigInt64Array": "readonly", | ||
"BigUint64Array": "readonly", | ||
"globalThis": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
// Overridden | ||
"no-eval": "off", | ||
"camelcase": ["error", { "properties": "never", "allow": [ "W[0-9]+_"] }], | ||
"import/extensions": "off", | ||
// @TODO: Fix the following rules progressively. | ||
"arrow-body-style": "warn", | ||
"prefer-arrow-callback": "warn", | ||
"prefer-object-spread": "off", | ||
"max-classes-per-file": "off", | ||
"dot-notation": "off", | ||
"object-shorthand": "off", | ||
"no-param-reassign": "off", | ||
"no-cond-assign": "off", | ||
"prefer-destructuring": "off", | ||
"func-names": "off", | ||
"no-nested-ternary": "off", | ||
"no-plusplus": "off", | ||
"strict": "off", | ||
"no-restricted-syntax": "off", | ||
"import/no-mutable-exports": "off", | ||
"guard-for-in": "off", | ||
"import/prefer-default-export": "off", | ||
"prefer-rest-params": "off", | ||
"one-var": "off", | ||
"prefer-spread": "off", | ||
"no-lonely-if": "off", | ||
"no-prototype-builtins": "off", | ||
"no-continue": "off", | ||
"no-shadow": "off", | ||
// Rules up for discussion. | ||
"no-multi-assign": "off", | ||
"new-cap": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.ts"], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"extends": [ | ||
"airbnb-typescript/base", | ||
"prettier" | ||
], | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"args": "after-used", | ||
"ignoreRestSiblings": true, | ||
"argsIgnorePattern": "^_" // For tsc compatibility. | ||
} | ||
], | ||
"comma-dangle": "off", | ||
"implicit-arrow-linebreak": "off", // Conflicts with prettier. | ||
"import/extensions": "off", | ||
"import/prefer-default-export": "off", | ||
"operator-linebreak": "off", | ||
"object-curly-newline": "off", | ||
"prefer-rest-params": "off", // We need to use params. | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/no-shadow": "warn", | ||
"@typescript-eslint/no-use-before-define": ["warn", { "functions": false }], | ||
"import/no-cycle": "warn", | ||
"no-bitwise": "off", | ||
"no-unsafe-finally": "warn", | ||
"no-param-reassign": "off", | ||
"no-shadow": "warn" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
* text=auto | ||
*.lockb binary diff=lockb |
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,7 +1,8 @@ | ||
.DS_Store | ||
*.log* | ||
doc/*.html | ||
node_modules | ||
dist/ | ||
node_modules/ | ||
*.code-workspace | ||
*.lockb | ||
*.sublime-project | ||
*.sublime-workspace |
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
bun run commitlint --edit "$1" |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
bun run 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage/ | ||
coverage-merged/ | ||
dist/ | ||
node_modules/ | ||
types/ |
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,6 @@ | ||
{ | ||
"printWidth": 100, | ||
"useTabs": false, | ||
"tabWidth": 4, | ||
"singleQuote": true | ||
} |
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
Oops, something went wrong.