-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from APIDevTools/feat/fix-ci
fix: bump dependencies, fix tests, fix imports from deps
- Loading branch information
Showing
27 changed files
with
7,714 additions
and
65,012 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
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,16 @@ | ||
import {build} from "esbuild"; | ||
import {polyfillNode} from "esbuild-plugin-polyfill-node"; | ||
|
||
await build({ | ||
entryPoints: ["online/src/js/index.js"], | ||
bundle: true, | ||
minify: true, | ||
sourcemap: 'external', | ||
target: 'chrome60', | ||
outfile: "online/js/bundle.js", | ||
plugins: [ | ||
polyfillNode({ | ||
// Options (optional) | ||
}), | ||
], | ||
}); |
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,69 @@ | ||
"use strict"; | ||
|
||
const universalRules = require("./universal-rules"); | ||
const universalJSDocRules = require("./universal-jsdoc-rules"); | ||
const javascriptRules = require("./javascript-rules"); | ||
const javascriptJSDocRules = require("./javascript-jsdoc-rules"); | ||
const javascriptTestRules = require("./javascript-test-rules"); | ||
|
||
module.exports = { | ||
plugins: [ | ||
"jsdoc", | ||
], | ||
overrides: [ | ||
/** | ||
* JavaScript source files | ||
*/ | ||
{ | ||
files: ["**/*.{js,jsx}"], | ||
excludedFiles: "test/**", | ||
parserOptions: { | ||
sourceType: "script", | ||
ecmaVersion: 2020, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
plugins: [ | ||
"jsdoc", | ||
], | ||
env: { | ||
es2020: true, | ||
commonjs: true, | ||
"shared-node-browser": true, | ||
}, | ||
rules: { | ||
...universalRules, | ||
...universalJSDocRules, | ||
...javascriptRules, | ||
...javascriptJSDocRules, | ||
} | ||
}, | ||
|
||
/** | ||
* JavaScript test files | ||
*/ | ||
{ | ||
files: ["test/**/*.{js,jsx}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
ecmaVersion: 2020, | ||
}, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
env: { | ||
es2020: true, | ||
commonjs: true, | ||
"shared-node-browser": true, | ||
mocha: true, | ||
jasmine: true, | ||
}, | ||
rules: { | ||
...universalRules, | ||
...javascriptRules, | ||
...javascriptTestRules, | ||
} | ||
}, | ||
], | ||
}; |
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,36 @@ | ||
"use strict"; | ||
|
||
/** | ||
* JSDoc rules for JavaScript and TypeScript | ||
*/ | ||
module.exports = { | ||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-types | ||
*/ | ||
"jsdoc/check-types": "warn", | ||
|
||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-no-undefined-types | ||
*/ | ||
"jsdoc/no-undefined-types": "warn", | ||
|
||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-param-type | ||
*/ | ||
"jsdoc/require-param-type": "warn", | ||
|
||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-property-type | ||
*/ | ||
"jsdoc/require-property-type": "warn", | ||
|
||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-returns-type | ||
*/ | ||
"jsdoc/require-returns-type": "warn", | ||
|
||
/** | ||
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-valid-types | ||
*/ | ||
"jsdoc/valid-types": "warn", | ||
}; |
Oops, something went wrong.