eslint-plugin-crisp 1.1.5 → 1.1.7

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.
package/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import fs from "fs";
2
-
3
1
  import configRecommended from "./recommended.js";
4
2
  import configRecommendedVue from "./recommended-vue.js";
5
3
 
@@ -48,9 +46,7 @@ import ruleVuePropsDeclarationMultiline from "./rules/vue-props-declaration-mult
48
46
  import ruleVuePropsDeclarationOrder from "./rules/vue-props-declaration-order.js";
49
47
  import ruleVueRefCase from "./rules/vue-ref-case.js";
50
48
 
51
- const projectPackage = JSON.parse(
52
- fs.readFileSync(new URL("./package.json", import.meta.url), "utf8")
53
- );
49
+ import projectPackage from "./package.json" assert { type: "json" };
54
50
 
55
51
  const plugin = {
56
52
  meta: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-crisp",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Custom ESLint Rules for Crisp",
5
5
  "author": "Crisp IM SAS",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@ export default function configRecommendedVue(pluginCrisp) {
18
18
  ],
19
19
 
20
20
  languageOptions: {
21
- ecmaVersion: 11,
21
+ ecmaVersion: 2020,
22
22
 
23
23
  globals: {
24
24
  ...globals.browser,
package/recommended.js CHANGED
@@ -11,7 +11,7 @@ export default function configRecommended(pluginCrisp) {
11
11
  ],
12
12
 
13
13
  languageOptions: {
14
- ecmaVersion: 11,
14
+ ecmaVersion: 2020,
15
15
 
16
16
  globals: {
17
17
  ...globals.browser,