center-center 0.0.158 → 0.1.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,74 @@
1
+ import globals from 'globals'
2
+ import standard from '@sequencemedia/eslint-config-standard/merge'
3
+ import typescript from '@sequencemedia/eslint-config-typescript/merge'
4
+
5
+ export default [
6
+ ...standard({
7
+ files: [
8
+ '**/*.{mjs,cjs}'
9
+ ],
10
+ ignores: [
11
+ 'test',
12
+ 'src'
13
+ ],
14
+ languageOptions: {
15
+ globals: {
16
+ ...globals.node
17
+ }
18
+ }
19
+ }),
20
+ ...standard({
21
+ files: [
22
+ 'src/**/*.{mjs,cjs}'
23
+ ],
24
+ languageOptions: {
25
+ globals: {
26
+ ...globals.browser
27
+ }
28
+ }
29
+ }),
30
+ ...standard({
31
+ files: [
32
+ 'test/**/*.{mjs,cjs}'
33
+ ],
34
+ languageOptions: {
35
+ globals: {
36
+ ...globals.mocha
37
+ }
38
+ }
39
+ }),
40
+ ...typescript({
41
+ files: [
42
+ '**/*.{mts,cts}'
43
+ ],
44
+ ignores: [
45
+ 'test',
46
+ 'src'
47
+ ],
48
+ languageOptions: {
49
+ globals: {
50
+ ...globals.node
51
+ }
52
+ }
53
+ }),
54
+ ...typescript({
55
+ files: [
56
+ 'src/**/*.{mts,cts}'
57
+ ],
58
+ languageOptions: {
59
+ globals: {
60
+ ...globals.browser
61
+ }
62
+ }
63
+ }),
64
+ ...typescript({
65
+ files: [
66
+ 'test/**/*.{mts,cts}'
67
+ ],
68
+ languageOptions: {
69
+ globals: {
70
+ ...globals.mocha
71
+ }
72
+ }
73
+ })
74
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "center-center",
3
- "version": "0.0.158",
3
+ "version": "0.1.0",
4
4
  "description": "Position an element at the center center of a container",
5
5
  "main": "./src/index.mjs",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  "scripts": {
19
19
  "lint": "run-s lint:mjs lint:mts",
20
20
  "lint:fix": "run-s lint:mjs:fix lint:mts:fix",
21
- "lint:mjs": "eslint . --ext .mjs,.cjs",
21
+ "lint:mjs": "eslint .",
22
22
  "lint:mjs:fix": "npm run lint:mjs -- --fix",
23
- "lint:mts": "eslint . --ext .mts,.cts",
23
+ "lint:mts": "eslint .",
24
24
  "lint:mts:fix": "npm run lint:mts -- --fix",
25
25
  "prepare": "husky",
26
26
  "start": "DEBUG=center-center* nodemon docs/index.mjs --watch .",
@@ -33,16 +33,17 @@
33
33
  "@babel/core": "^7.26.0",
34
34
  "@babel/eslint-parser": "^7.25.9",
35
35
  "@babel/preset-env": "^7.26.0",
36
+ "@sequencemedia/eslint-config-standard": "^0.1.1",
37
+ "@sequencemedia/eslint-config-typescript": "^0.0.0",
36
38
  "@types/debug": "^4.1.12",
37
- "@typescript-eslint/eslint-plugin": "7.18.0",
38
- "@typescript-eslint/parser": "7.18.0",
39
+ "@typescript-eslint/eslint-plugin": "^8.17.0",
40
+ "@typescript-eslint/parser": "^8.17.0",
39
41
  "chai": "^5.1.2",
40
42
  "core-js": "^3.39.0",
41
43
  "cross-env": "^7.0.3",
42
- "eslint": "8.57.1",
43
- "eslint-config-love": "47.0.0",
44
- "eslint-config-standard": "^17.1.0",
44
+ "eslint": "^9.16.0",
45
45
  "express": "^4.21.1",
46
+ "globals": "^15.13.0",
46
47
  "husky": "^9.1.7",
47
48
  "mocha": "^11.0.1",
48
49
  "nodemon": "^3.1.7",
@@ -1,6 +1,6 @@
1
1
  declare module 'center-center/dom' {
2
- import {
3
- type CenterCenterRects
2
+ import type {
3
+ CenterCenterRects
4
4
  } from 'center-center/common'
5
5
 
6
6
  export function createRects (container: Element, target: Element): CenterCenterRects
@@ -1,6 +1,6 @@
1
1
  declare module 'center-center/svg' {
2
- import {
3
- type CenterCenterRects
2
+ import type {
3
+ CenterCenterRects
4
4
  } from 'center-center/common'
5
5
 
6
6
  export function createRects (container: Element, target: SVGElement): CenterCenterRects