Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lodash:main' into caseTools
- Loading branch information
Showing
1,280 changed files
with
35,072 additions
and
33,340 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,99 @@ | ||
{ | ||
"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 | ||
"camelcase": ["error", { "properties": "never", "allow": [ "W[0-9]+_"] }], | ||
"import/extensions": "off", | ||
"no-eval": "off", | ||
"no-self-compare": "off", | ||
"one-var": ["error", "never"], | ||
// @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", | ||
"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,19 +1,16 @@ | ||
name: Node.js CI | ||
|
||
on: [push, pull_request] | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm cit | ||
- uses: actions/checkout@v3 | ||
- uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: 1.0.2 | ||
- run: bun install |
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 |
Oops, something went wrong.