@planfredapp/eslint-config 1.0.9 → 1.0.14

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -10
  3. package/package.json +33 -17
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Planfred
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -45,7 +45,7 @@ Extends the base configuration with testing framework rules:
45
45
 
46
46
  ```javascript
47
47
  // For base configuration
48
- import baseConfig from '@planfred/eslint-config/base'
48
+ import baseConfig from '@planfredapp/eslint-config/base'
49
49
 
50
50
  export default [
51
51
  ...baseConfig,
@@ -53,7 +53,7 @@ export default [
53
53
  ]
54
54
 
55
55
  // For Vue projects
56
- import vueConfig from '@planfred/eslint-config/vue'
56
+ import vueConfig from '@planfredapp/eslint-config/vue'
57
57
 
58
58
  export default [
59
59
  ...vueConfig,
@@ -61,7 +61,7 @@ export default [
61
61
  ]
62
62
 
63
63
  // For Cypress tests
64
- import cypressConfig from '@planfred/eslint-config/cypress'
64
+ import cypressConfig from '@planfredapp/eslint-config/cypress'
65
65
 
66
66
  export default [
67
67
  ...cypressConfig,
@@ -69,7 +69,7 @@ export default [
69
69
  ]
70
70
 
71
71
  // For test files
72
- import testConfig from '@planfred/eslint-config/test'
72
+ import testConfig from '@planfredapp/eslint-config/test'
73
73
 
74
74
  export default [
75
75
  ...testConfig,
@@ -79,22 +79,40 @@ export default [
79
79
 
80
80
  ### Package.json Dependencies
81
81
 
82
- Add the shared config as a dependency in your package.json using the GitHub repository URL:
82
+ Add the shared config as a dependency in your package.json:
83
83
 
84
84
  ```json
85
85
  {
86
- "dependencies": {
87
- "@planfred/eslint-config": "git+https://github.com/planfred/eslint-config.git"
86
+ "devDependencies": {
87
+ "@planfredapp/eslint-config": "^1.0.12"
88
88
  }
89
89
  }
90
90
  ```
91
91
 
92
- Alternatively, you can use a specific version or branch:
92
+ Or install directly with npm:
93
+
94
+ ```bash
95
+ npm install --save-dev @planfredapp/eslint-config
96
+ ```
97
+
98
+ ### Available Versions
99
+
100
+ You can install specific versions:
101
+
102
+ ```json
103
+ {
104
+ "devDependencies": {
105
+ "@planfredapp/eslint-config": "1.0.12"
106
+ }
107
+ }
108
+ ```
109
+
110
+ Or use the latest version:
93
111
 
94
112
  ```json
95
113
  {
96
- "dependencies": {
97
- "@planfred/eslint-config": "git+https://github.com/planfred/eslint-config.git#v1.0.0"
114
+ "devDependencies": {
115
+ "@planfredapp/eslint-config": "latest"
98
116
  }
99
117
  }
100
118
  ```
package/package.json CHANGED
@@ -1,9 +1,27 @@
1
1
  {
2
2
  "name": "@planfredapp/eslint-config",
3
- "version": "1.0.9",
3
+ "version": "1.0.14",
4
4
  "description": "Shared ESLint configurations for Planfred monorepo",
5
- "main": "index.js",
5
+ "keywords": [
6
+ "eslint",
7
+ "eslint-config",
8
+ "planfred",
9
+ "javascript",
10
+ "vue",
11
+ "cypress",
12
+ "testing"
13
+ ],
14
+ "license": "MIT",
6
15
  "type": "module",
16
+ "author": "Planfred",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/planmanager/planfred-eslint-config.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/planmanager/planfred-eslint-config/issues"
23
+ },
24
+ "homepage": "https://github.com/planmanager/planfred-eslint-config#readme",
7
25
  "exports": {
8
26
  ".": "./base.js",
9
27
  "./base": "./base.js",
@@ -11,42 +29,40 @@
11
29
  "./cypress": "./cypress.js",
12
30
  "./test": "./test.js"
13
31
  },
32
+ "main": "index.js",
14
33
  "files": [
15
34
  "*.js"
16
35
  ],
17
36
  "scripts": {
18
37
  "lint": "eslint .",
19
38
  "lint:fix": "eslint . --fix",
39
+ "ncu": "NCU_COOLDOWN_DAYS=${NCU_COOLDOWN_DAYS:-3}; npx npm-check-updates@latest -u --cooldown $NCU_COOLDOWN_DAYS",
40
+ "publish": "npm publish --access public",
20
41
  "test": "vitest",
21
42
  "test:run": "vitest run",
22
- "ncu": "NCU_COOLDOWN_DAYS=${NCU_COOLDOWN_DAYS:-3}; npx npm-check-updates@latest -u --cooldown $NCU_COOLDOWN_DAYS",
23
43
  "upgrade": "git stash; NCU_OUTPUT=${node --run ncu}; npm install; echo \"$NCU_OUTPUT\"; git commit -am \"Upgrade npm packages: \n\n$NCU_OUTPUT\"; git push --force-with-lease;",
24
- "tag": "git tag v$(node -p \"require('./package.json').version\") || true",
25
- "tag:push": "git push origin v$(node -p \"require('./package.json').version\")",
26
- "release": "npm run tag && npm run tag:push",
27
- "version:patch": "npm version patch && npm run release",
28
- "version:minor": "npm version minor && npm run release",
29
- "version:major": "npm version major && npm run release",
30
- "publish": "npm publish --access public"
44
+ "version:major": "PACKAGE_VERSION=$(npm version major); echo \"$PACKAGE_VERSION\"; git tag $PACKAGE_VERSION; git push origin $PACKAGE_VERSION",
45
+ "version:minor": "PACKAGE_VERSION=$(npm version minor); echo \"$PACKAGE_VERSION\"; git tag $PACKAGE_VERSION; git push origin $PACKAGE_VERSION",
46
+ "version:patch": "PACKAGE_VERSION=$(npm version patch); echo \"$PACKAGE_VERSION\"; git tag $PACKAGE_VERSION; git push origin $PACKAGE_VERSION"
31
47
  },
32
48
  "dependencies": {
33
49
  "@eslint/js": "9.36.0",
34
50
  "@stylistic/eslint-plugin": "5.4.0",
51
+ "@vitest/eslint-plugin": "1.3.13",
52
+ "eslint-plugin-cypress": "5.1.1",
35
53
  "eslint-plugin-import": "2.32.0",
36
54
  "eslint-plugin-n": "17.23.1",
37
- "eslint-plugin-promise": "7.2.1",
38
- "eslint-plugin-vue": "10.5.0",
39
- "eslint-plugin-cypress": "5.1.1",
40
55
  "eslint-plugin-no-only-tests": "3.3.0",
41
56
  "eslint-plugin-no-relative-import-paths": "1.6.1",
42
- "@vitest/eslint-plugin": "1.3.13",
43
- "typescript-eslint": "8.44.0",
44
- "globals": "16.4.0"
57
+ "eslint-plugin-promise": "7.2.1",
58
+ "eslint-plugin-vue": "10.5.0",
59
+ "globals": "16.4.0",
60
+ "typescript-eslint": "8.44.0"
45
61
  },
46
62
  "devDependencies": {
47
- "vitest": "3.2.4",
48
63
  "eslint": "9.36.0",
49
64
  "typescript": "5.9.2",
65
+ "vitest": "3.2.4",
50
66
  "vue-eslint-parser": "10.2.0"
51
67
  },
52
68
  "peerDependencies": {