@vonage/eslint-config 1.3.0 → 1.4.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.
Files changed (2) hide show
  1. package/lib/index.js +23 -4
  2. package/package.json +14 -11
package/lib/index.js CHANGED
@@ -1,27 +1,46 @@
1
- import eslint from "@eslint/js";
1
+ import eslint from '@eslint/js';
2
2
  import tseslint from 'typescript-eslint'
3
3
  import stylisticJs from '@stylistic/eslint-plugin-js'
4
4
  import jest from 'eslint-plugin-jest';
5
5
  import nodePlugin from 'eslint-plugin-n';
6
+ import packageJson from 'eslint-plugin-package-json';
6
7
 
7
8
  export const baseConfig = [
8
9
  eslint.configs.recommended,
9
10
  stylisticJs.configs['disable-legacy'],
10
11
  {
11
12
  plugins: {
12
- '@stylistic/js': stylisticJs
13
+ '@stylistic/js': stylisticJs
13
14
  },
14
15
  rules: {
15
16
  '@stylistic/js/semi': ['error', 'always'],
16
17
  'indent': ['error', 2],
17
18
  'quotes': ['error', 'single'],
18
-
19
+ }
20
+ },
21
+ {
22
+ ...packageJson.configs.recommended,
23
+ files: ['packages/**/package.json'],
24
+ rules: {
25
+ ...packageJson.configs.recommended.rules,
26
+ 'package-json/require-type': 'error',
27
+ 'package-json/require-engines': 'error',
28
+ 'package-json/require-files': 'error',
29
+ 'package-json/require-types': 'error',
30
+ 'package-json/restrict-dependency-ranges': [
31
+ 'error',
32
+ [
33
+ {
34
+ rangeType: 'pin',
35
+ },
36
+ ],
37
+ ],
19
38
  }
20
39
  }
21
40
  ];
22
41
 
23
42
  export const typescriptConfig = [
24
- ...baseConfig,
43
+ ...baseConfig,
25
44
  {
26
45
  plugins: {
27
46
  '@typescript-eslint/parser': tseslint.plugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/eslint-config",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "ESLint rules for Vonage",
5
5
  "homepage": "https://github.com/Vonage-Community/vonage-eslint-config#readme",
6
6
  "bugs": {
@@ -11,23 +11,26 @@
11
11
  "url": "git+https://github.com/Vonage-Community/vonage-eslint-config.git"
12
12
  },
13
13
  "license": "Apache-2.0",
14
- "author": "",
15
14
  "type": "module",
15
+ "contributors": [
16
+ {
17
+ "name": "Chuck \"MANCHUCK\" Reeves",
18
+ "url": "https://github.com/manchuck"
19
+ }
20
+ ],
16
21
  "main": "lib/index.js",
17
22
  "files": [
18
23
  "src"
19
24
  ],
20
- "scripts": {
21
- "lint": "eslint ."
22
- },
23
25
  "dependencies": {
24
26
  "@eslint/js": "^9.9.0",
25
- "@stylistic/eslint-plugin": "^2.6.4",
26
- "@stylistic/eslint-plugin-ts": "^2.6.4",
27
- "eslint": "^9.9.0",
27
+ "@stylistic/eslint-plugin": "2.6.4",
28
+ "@stylistic/eslint-plugin-ts": "2.6.4",
29
+ "eslint": "9.9.0",
28
30
  "eslint-plugin-jest": "^28.8.0",
29
- "eslint-plugin-jsdoc": "^50.2.2",
30
- "eslint-plugin-n": "^17.10.2",
31
- "typescript-eslint": "^8.2.0"
31
+ "eslint-plugin-jsdoc": "50.2.2",
32
+ "eslint-plugin-n": "17.10.2",
33
+ "eslint-plugin-package-json": "0.88.1",
34
+ "typescript-eslint": "8.2.0"
32
35
  }
33
36
  }