@commission-on-post/eslint-config-recommended 0.8.0 → 0.8.2

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/.eslintrc.js +5 -30
  2. package/README.md +4 -4
  3. package/package.json +11 -10
package/.eslintrc.js CHANGED
@@ -5,13 +5,13 @@ module.exports = {
5
5
  },
6
6
  extends: [
7
7
  "eslint:recommended",
8
+ "plugin:import/recommended",
8
9
  "plugin:@typescript-eslint/recommended",
9
10
  "plugin:@typescript-eslint/recommended-requiring-type-checking"
10
11
  ],
11
12
  plugins: [
12
13
  "@typescript-eslint",
13
- // Import has security issues removed for the tiim
14
- //"import" // This was imported to replace the rule `no-duplicate-imports`
14
+ "import"
15
15
  ],
16
16
  rules: {
17
17
  /*
@@ -106,20 +106,12 @@ module.exports = {
106
106
  "@typescript-eslint/no-dupe-class-members": [
107
107
  "error"
108
108
  ],
109
- // The import/no-duplicates has security vunerabilites so for now the deprecated approach is going to be used
110
- "@typescript-eslint/no-duplicate-imports":[
109
+ "import/no-duplicates": [
111
110
  "warn",
112
111
  {
113
- "includeExports": true
112
+ "prefer-inline": true
114
113
  }
115
114
  ],
116
- // Rule updated from `no-duplicate-imports`
117
- // "import/no-duplicates": [
118
- // "error",
119
- // {
120
- // "prefer-inline": true
121
- // }
122
- // ],
123
115
  "@typescript-eslint/no-empty-function": [
124
116
  "warn",
125
117
  {
@@ -763,7 +755,7 @@ module.exports = {
763
755
  }
764
756
  ],
765
757
  "@typescript-eslint/consistent-type-definitions": [
766
- "error",
758
+ "warn",
767
759
  "interface"
768
760
  ],
769
761
  "@typescript-eslint/consistent-type-exports": [
@@ -848,19 +840,6 @@ module.exports = {
848
840
  "@typescript-eslint/no-require-imports": [
849
841
  "error"
850
842
  ],
851
- "@typescript-eslint/no-type-alias": [
852
- "warn",
853
- {
854
- "allowAliases": "in-unions-and-intersections",
855
- "allowCallbacks": "always",
856
- "allowConditionalTypes": "never",
857
- "allowConstructors": "never",
858
- "allowLiterals": "in-unions-and-intersections",
859
- "allowMappedTypes": "always",
860
- "allowTupleTypes": "never",
861
- "allowGenerics": "always"
862
- }
863
- ],
864
843
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
865
844
  "warn",
866
845
  {
@@ -1089,10 +1068,6 @@ module.exports = {
1089
1068
  "require-await": [
1090
1069
  "off"
1091
1070
  ],
1092
- // This rule was renamed to have a `no-` in front of it
1093
- "no-return-await": [
1094
- "off"
1095
- ],
1096
1071
  "semi": [
1097
1072
  "off"
1098
1073
  ],
package/README.md CHANGED
@@ -32,10 +32,10 @@ $ npm install @commission-on-post/eslint-config-recommended -D
32
32
  ### Peer Dependencies
33
33
  | Package | Version |
34
34
  |---------|---------|
35
- | @typescript-eslint/eslint-plugin | >=5.3.0 |
36
- | @typescript-eslint/parser | >=5.3.0 |
37
- | eslint | >=8.1.0 |
38
- | typescript | >=4.4.4 |
35
+ | @typescript-eslint/eslint-plugin | >=6.2.1 |
36
+ | @typescript-eslint/parser | >=6.2.1 |
37
+ | eslint | >=8.46.0 |
38
+ | typescript | >=5.1.6 |
39
39
  ---
40
40
  ### Workspace Setup
41
41
  #### Suggested VS Code Extensions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commission-on-post/eslint-config-recommended",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "ESLint config using recommended state practices for the Commission on POST",
5
5
  "main": "index.js",
6
6
  "author": "Ryan W. Bell",
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/Commission-on-POST/eslint_recommended_style.git"
11
11
  },
12
12
  "homepage": "https://github.com/Commission-on-POST/eslint_recommended_style#readme",
13
- "scripts":{
13
+ "scripts": {
14
14
  "start": "node ."
15
15
  },
16
16
  "keywords": [
@@ -21,15 +21,16 @@
21
21
  "recommended"
22
22
  ],
23
23
  "peerDependencies": {
24
- "@typescript-eslint/eslint-plugin": ">=5.60.0",
25
- "@typescript-eslint/parser": ">=5.60.0",
26
- "eslint": ">=8.43.0",
27
- "typescript": ">=5.0.4"
24
+ "@typescript-eslint/eslint-plugin": ">=6.2.1",
25
+ "@typescript-eslint/parser": ">=6.2.1",
26
+ "eslint": ">=8.46.0",
27
+ "typescript": ">=5.1.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@typescript-eslint/eslint-plugin": "^5.60.0",
31
- "@typescript-eslint/parser": "^5.60.0",
32
- "eslint": "^8.43.0",
33
- "typescript": "^5.0.4"
30
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
31
+ "@typescript-eslint/parser": "^6.2.1",
32
+ "eslint": "^8.46.0",
33
+ "eslint-plugin-import": "^2.28.0",
34
+ "typescript": "^5.1.6"
34
35
  }
35
36
  }