@kong/eslint-config-kong-ui 1.6.2 → 1.7.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.
- package/configs/index.mjs +3 -0
- package/package.json +2 -1
package/configs/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import pluginVue from 'eslint-plugin-vue'
|
|
|
5
5
|
import pluginPromise from 'eslint-plugin-promise'
|
|
6
6
|
import stylistic from '@stylistic/eslint-plugin'
|
|
7
7
|
import globals from 'globals'
|
|
8
|
+
import designTokensPlugin from '@kong/eslint-plugin-design-tokens'
|
|
8
9
|
|
|
9
10
|
const stylisticRules = {
|
|
10
11
|
'@stylistic/indent': ['error', 2],
|
|
@@ -136,6 +137,7 @@ export default [
|
|
|
136
137
|
},
|
|
137
138
|
plugins: {
|
|
138
139
|
'@stylistic': stylistic,
|
|
140
|
+
'@kong/eslint-plugin-design-tokens': designTokensPlugin,
|
|
139
141
|
},
|
|
140
142
|
ignores: [
|
|
141
143
|
'**/locales/**/*.json',
|
|
@@ -212,6 +214,7 @@ export default [
|
|
|
212
214
|
},
|
|
213
215
|
],
|
|
214
216
|
'vue/require-default-prop': 'off',
|
|
217
|
+
'@kong/eslint-plugin-design-tokens/token-constant-requires-css-var': 'error',
|
|
215
218
|
},
|
|
216
219
|
},
|
|
217
220
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong/eslint-config-kong-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Sharable ESLint configuration for Kong's frontend repositories",
|
|
5
5
|
"main": "configs/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint/js": "^9.37.0",
|
|
28
|
+
"@kong/eslint-plugin-design-tokens": "^0.0.1",
|
|
28
29
|
"@stylistic/eslint-plugin": "^5.4.0",
|
|
29
30
|
"eslint-plugin-cypress": "^5.2.0",
|
|
30
31
|
"eslint-plugin-jsonc": "^2.21.0",
|