-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update all repo files from alwatr (#195)
- Loading branch information
Showing
58 changed files
with
5,154 additions
and
3,733 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
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,6 @@ | ||
*.js | ||
*.mjs | ||
*.cjs | ||
*.d.ts | ||
/demo/es-bench/ | ||
/uniquely/flight-finder-pwa | ||
|
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,87 +1,4 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/strict", | ||
"plugin:@typescript-eslint/stylistic", | ||
// "plugin:@typescript-eslint/strict-type-checked", | ||
// "plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript" | ||
], | ||
"env": { | ||
"shared-node-browser": true, | ||
"es2023": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": true, | ||
"ecmaVersion": 2023, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint", "import"], | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true, | ||
"ecmaVersion": 2023, | ||
"project": ["**/tsconfig.json"], | ||
"projectFolderIgnoreList": ["**/node_modules/**"] | ||
}, | ||
"node": true | ||
} | ||
}, | ||
"rules": { | ||
"max-len": ["error", {"code": 120}], | ||
"no-eval": ["error", {"allowIndirect": true}], | ||
"no-floating-decimal": "error", | ||
"space-infix-ops": "error", | ||
"new-cap": ["error", {"capIsNewExceptionPattern": "Mixin$"}], | ||
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}], | ||
"indent": "off", | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1, | ||
"VariableDeclarator": 1, | ||
"outerIIFEBody": 1, | ||
"MemberExpression": 1, | ||
"FunctionDeclaration": {"parameters": 1, "body": 1}, | ||
"FunctionExpression": {"parameters": 1, "body": 1}, | ||
"CallExpression": {"arguments": 1}, | ||
"ArrayExpression": 1, | ||
"ObjectExpression": 1, | ||
"ImportDeclaration": 1, | ||
"flatTernaryExpressions": false, | ||
"ignoreComments": false, | ||
"ignoredNodes": [ | ||
"TemplateLiteral *", | ||
"TSTypeParameterInstantiation", | ||
"FunctionExpression > .params[decorators.length > 0]", | ||
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))", | ||
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key" | ||
] | ||
} | ||
], | ||
"operator-linebreak": ["error", "after", {"overrides": {"?": "before", ":": "before"}}], | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "object", "unknown", "type"], | ||
"newlines-between": "always", | ||
"warnOnUnassignedImports": true, | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
"@typescript-eslint/prefer-string-starts-ends-with": "off", | ||
"@typescript-eslint/no-dynamic-delete": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"no-throw-literal": "off", | ||
"require-jsdoc": "off", | ||
"valid-jsdoc": "off" | ||
} | ||
"extends": "@alwatr/eslint-config" | ||
} |
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 |
---|---|---|
|
@@ -25,10 +25,10 @@ jobs: | |
|
||
steps: | ||
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: 🏗 Setup nodejs | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
|
@@ -40,7 +40,7 @@ jobs: | |
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- name: 🏗 Cache Layer | ||
uses: actions/cache@v3.3.2 | ||
uses: actions/cache@v4.0.2 | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
|
@@ -56,3 +56,6 @@ jobs: | |
|
||
- name: 🚀 Run ESLint | ||
run: yarn lint | ||
|
||
- name: 🚀 Run Jest | ||
run: yarn 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 |
---|---|---|
|
@@ -32,17 +32,17 @@ jobs: | |
|
||
steps: | ||
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: 🏗 Initialize CodeQL | ||
uses: github/codeql-action/init@v3.22.11 | ||
uses: github/codeql-action/init@v3.26.6 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
- name: 🏗 Auto build | ||
uses: github/codeql-action/autobuild@v3.22.11 | ||
uses: github/codeql-action/autobuild@v3.26.6 | ||
|
||
- name: 🚀 Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3.22.11 | ||
uses: github/codeql-action/analyze@v3.26.6 |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
|
||
steps: | ||
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: 🚀 Dependency Review | ||
uses: actions/dependency-review-action@v3.1.4 | ||
uses: actions/dependency-review-action@v4.3.4 |
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 |
---|---|---|
|
@@ -24,10 +24,10 @@ jobs: | |
|
||
steps: | ||
- name: ⤵️ Checkout repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: 🏗 Setup nodejs | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
@@ -40,7 +40,7 @@ jobs: | |
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
|
||
- name: 🏗 Cache Layer | ||
uses: actions/cache@v3.3.2 | ||
uses: actions/cache@v4.0.2 | ||
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn_config.outputs.cache_folder }} | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
|
||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
|
||
- name: 🚀 Run Label Syncer | ||
uses: micnncim/[email protected] | ||
|
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 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire, register} = require(`module`); | ||
const {resolve} = require(`path`); | ||
const {pathToFileURL} = require(`url`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`); | ||
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require eslint/bin/eslint.js | ||
require(absPnpApiPath).setup(); | ||
if (isPnpLoaderEnabled && register) { | ||
register(pathToFileURL(absPnpLoaderPath)); | ||
} | ||
} | ||
} | ||
|
||
const wrapWithUserWrapper = existsSync(absUserWrapperPath) | ||
? exports => absRequire(absUserWrapperPath)(exports) | ||
: exports => exports; | ||
|
||
// Defer to the real eslint/bin/eslint.js your application uses | ||
module.exports = wrapWithUserWrapper(absRequire(`eslint/bin/eslint.js`)); |
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,32 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire, register} = require(`module`); | ||
const {resolve} = require(`path`); | ||
const {pathToFileURL} = require(`url`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
const absPnpLoaderPath = resolve(absPnpApiPath, `../.pnp.loader.mjs`); | ||
const isPnpLoaderEnabled = existsSync(absPnpLoaderPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require eslint | ||
require(absPnpApiPath).setup(); | ||
if (isPnpLoaderEnabled && register) { | ||
register(pathToFileURL(absPnpLoaderPath)); | ||
} | ||
} | ||
} | ||
|
||
const wrapWithUserWrapper = existsSync(absUserWrapperPath) | ||
? exports => absRequire(absUserWrapperPath)(exports) | ||
: exports => exports; | ||
|
||
// Defer to the real eslint your application uses | ||
module.exports = wrapWithUserWrapper(absRequire(`eslint`)); |
Oops, something went wrong.