@kong/eslint-config-kong-ui 1.4.0 → 1.4.1

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/README.md CHANGED
@@ -107,7 +107,7 @@ export default [
107
107
  // anything from here will override eslintKongUiConfig
108
108
  {
109
109
  rules: {
110
- 'no-unused-vars': 'error',
110
+ 'no-unused-vars': 'error',
111
111
  }
112
112
  }
113
113
  ]
@@ -1,15 +1,10 @@
1
1
  import eslintKongUiConfig from './index.mjs'
2
-
3
- // Compatibility utils
4
- import { FlatCompat } from '@eslint/eslintrc'
5
- const compat = new FlatCompat()
2
+ import pluginCypress from 'eslint-plugin-cypress'
6
3
 
7
4
  export default [
8
5
  // Use the main config for all files
9
6
  ...eslintKongUiConfig,
10
- ...compat.config({
11
- extends: ['plugin:cypress/recommended'],
12
- }),
7
+ pluginCypress.configs.recommended,
13
8
  {
14
9
  rules: {
15
10
  'promise/always-return': 'off',
package/configs/index.mjs CHANGED
@@ -2,24 +2,15 @@ import eslint from '@eslint/js'
2
2
  import tseslint from 'typescript-eslint'
3
3
  import vueParser from 'vue-eslint-parser'
4
4
  import pluginVue from 'eslint-plugin-vue'
5
+ import pluginPromise from 'eslint-plugin-promise'
5
6
  import stylistic from '@stylistic/eslint-plugin'
6
7
  import globals from 'globals'
7
8
 
8
- // Compatibility utils
9
- import { FlatCompat } from '@eslint/eslintrc'
10
- import { fixupConfigRules } from '@eslint/compat'
11
- const compat = new FlatCompat()
12
-
13
9
  export default [
14
10
  eslint.configs.recommended,
15
11
  ...tseslint.configs.recommended,
16
12
  ...pluginVue.configs['flat/recommended'],
17
- // See here for compatibility: https://github.com/eslint-community/eslint-plugin-promise/issues/449#issuecomment-2108572139
18
- ...fixupConfigRules(
19
- compat.config({
20
- extends: ['plugin:promise/recommended'],
21
- }),
22
- ),
13
+ pluginPromise.configs['flat/recommended'],
23
14
  // Global ignores
24
15
  {
25
16
  ignores: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong/eslint-config-kong-ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Sharable ESLint configuration for Kong's frontend repositories",
5
5
  "main": "configs/index.mjs",
6
6
  "type": "module",
@@ -24,14 +24,12 @@
24
24
  "commit": "cz"
25
25
  },
26
26
  "dependencies": {
27
- "@eslint/compat": "^1.2.4",
28
- "@eslint/eslintrc": "^3.3.1",
29
27
  "@eslint/js": "^9.23.0",
30
28
  "@stylistic/eslint-plugin": "^5.0.0",
31
- "eslint-plugin-cypress": "^3.6.0",
29
+ "eslint-plugin-cypress": "^5.1.0",
32
30
  "eslint-plugin-jsonc": "^2.20.0",
33
31
  "eslint-plugin-n": "^17.17.0",
34
- "eslint-plugin-promise": "^6.6.0",
32
+ "eslint-plugin-promise": "^7.2.1",
35
33
  "eslint-plugin-vue": "^9.33.0",
36
34
  "globals": "^15.15.0",
37
35
  "jsonc-eslint-parser": "^2.4.0",