mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
- Add `xrpl-secret-numbers` by @WietseWind to the mono repo. - `unpkg` and `jsdelivr` support was simplified by adding fields to package.json. - Unit tests run in a browser and node. BREAKING CHANGES: - `xrpl-secret-numbers` is now `@xrplf/secret-numbers`. - Changed the bundled file produced changed from `dist/browerified.js` to `build/xrplf-secret-numbers-latest.js`. - Bundle variable is `xrplf_secret_numbers` instead of using browserify's loader. - If using CDN instructions in README will need to update to `https://cdn.jsdelivr.net/npm/@xrplf/secret-numbers` Making this library part of the monorepo was discussed in #1788. This solves several problems with the upcoming `xrpl.js@3.0`. `xrpl-secret-numbers` has a dependency of `ripple-keypairs` and `xrpl` has a depenendecy on `xrpl-secret-numbers`. This means that any change would require a separate release of `ripple-keypairs`, then a release of `xrpl-secret-numbers`, followed by `xrpl`. Now they can be released all at once In 3.0 we eliminated the need for many polyfills like `util`, `assert`, and soon to be `buffer` (after noble libs PR is merged). `xrpl-secret-numbers` still needs those. This will also eliminate them and anytime similar changes in the future will be much easier. This further reduces the bundle size of 3.0 branch by over 10% as well as reducing bundler setup.
48 lines
1.5 KiB
JavaScript
48 lines
1.5 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
|
|
parser: "@typescript-eslint/parser", // Make ESLint compatible with TypeScript
|
|
parserOptions: {
|
|
// Enable linting rules with type information from our tsconfig
|
|
tsconfigRootDir: __dirname,
|
|
project: ["./tsconfig.eslint.json"],
|
|
|
|
sourceType: "module", // Allow the use of imports / ES modules
|
|
|
|
ecmaFeatures: {
|
|
impliedStrict: true, // Enable global strict mode
|
|
},
|
|
},
|
|
|
|
// Specify global variables that are predefined
|
|
env: {
|
|
browser: true, // Enable browser global variables
|
|
node: true, // Enable node global variables & Node.js scoping
|
|
es2020: true, // Add all ECMAScript 2020 globals and automatically set the ecmaVersion parser option to ES2020
|
|
},
|
|
|
|
plugins: [],
|
|
extends: ["@xrplf/eslint-config/base"],
|
|
|
|
rules: {
|
|
// This creates a lot of false positives. We should turn this off in our
|
|
// general config.
|
|
"jsdoc/require-description-complete-sentence": "off",
|
|
|
|
// ** TODO **
|
|
// all of the below are turned off for now during the migration to a
|
|
// monorepo. They need to actually be addressed!
|
|
// **
|
|
"@typescript-eslint/no-magic-numbers": "off",
|
|
"jsdoc/require-returns": "off",
|
|
"jsdoc/check-param-names": "off",
|
|
"jsdoc/require-throws": "off",
|
|
"jsdoc/require-jsdoc": "off",
|
|
"jsdoc/require-param": "off",
|
|
"jsdoc/check-examples": "off", // Not implemented in eslint 8
|
|
"tsdoc/syntax": "off",
|
|
"@typescript-eslint/no-require-imports": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
},
|
|
};
|