@speckle/objectloader 2.18.16 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ import { baseConfigs, globals } from '../../eslint.config.mjs'
2
+
3
+ /**
4
+ * @type {Array<import('eslint').Linter.FlatConfig>}
5
+ */
6
+ const configs = [
7
+ ...baseConfigs,
8
+ {
9
+ ignores: ['examples', 'types']
10
+ },
11
+ {
12
+ languageOptions: {
13
+ globals: {
14
+ ...globals.browser
15
+ }
16
+ }
17
+ },
18
+ {
19
+ files: ['*.{js,mjs,ts,cjs}'],
20
+ languageOptions: {
21
+ globals: {
22
+ ...globals.node
23
+ }
24
+ }
25
+ }
26
+ ]
27
+
28
+ export default configs
package/jsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "extends": "../../jsconfig.base.json",
3
3
  "compilerOptions": {},
4
- "include": ["src/**", "examples"]
4
+ "include": ["src", "examples"]
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speckle/objectloader",
3
- "version": "2.18.16",
3
+ "version": "2.19.0",
4
4
  "description": "Simple API helper to stream in objects from the Speckle Server.",
5
5
  "main": "dist/objectloader.js",
6
6
  "module": "dist/objectloader.esm.js",
@@ -15,7 +15,7 @@
15
15
  "node": ">=18.0.0"
16
16
  },
17
17
  "scripts": {
18
- "lint": "eslint . --ext .js,.ts",
18
+ "lint": "eslint .",
19
19
  "build:dev": "rollup --config",
20
20
  "build": "NODE_ENV=production rollup --config",
21
21
  "prepack": "yarn build",
@@ -31,7 +31,7 @@
31
31
  "license": "Apache-2.0",
32
32
  "dependencies": {
33
33
  "@babel/core": "^7.17.9",
34
- "@speckle/shared": "^2.18.16",
34
+ "@speckle/shared": "^2.19.0",
35
35
  "core-js": "^3.21.1",
36
36
  "regenerator-runtime": "^0.13.7"
37
37
  },
@@ -44,8 +44,8 @@
44
44
  "@rollup/plugin-node-resolve": "^13.1.3",
45
45
  "@rollup/plugin-terser": "^0.4.4",
46
46
  "cross-fetch": "^3.1.5",
47
- "eslint": "^8.11.0",
48
- "eslint-config-prettier": "^8.5.0",
47
+ "eslint": "^9.4.0",
48
+ "eslint-config-prettier": "^9.1.0",
49
49
  "http-server": "^14.1.0",
50
50
  "prettier": "^2.5.1",
51
51
  "rollup": "^2.70.1",
package/.eslintrc.cjs DELETED
@@ -1,19 +0,0 @@
1
- /**
2
- * Extends repo root config, only put changes here that are scoped to this specific package
3
- * (if you already are - evaluate whether you really need package scoped linting rules)
4
- */
5
-
6
- /** @type {import("eslint").Linter.Config} */
7
- const config = {
8
- env: {
9
- browser: true,
10
- node: true
11
- },
12
- parserOptions: {
13
- sourceType: 'module',
14
- ecmaVersion: 2022
15
- },
16
- ignorePatterns: ['examples/browser/objectloader.web.js', 'types/**/*']
17
- }
18
-
19
- module.exports = config