Skip to content

Commit

Permalink
fix: false negative on critical security related to eslint-plugin-tra…
Browse files Browse the repository at this point in the history
…nslation-vars (#32018)
  • Loading branch information
mistercrunch authored Feb 10, 2025
1 parent f014932 commit 8d1fb9c
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 71 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = {
'file-progress',
'lodash',
'theme-colors',
'translation-vars',
'i18n-strings',
'react-prefer-function-component',
'prettier',
],
Expand Down Expand Up @@ -284,15 +284,15 @@ module.exports = {
],
rules: {
'theme-colors/no-literal-colors': 0,
'translation-vars/no-template-vars': 0,
'i18n-strings/no-template-vars': 0,
'no-restricted-imports': 0,
'react/no-void-elements': 0,
},
},
],
rules: {
'theme-colors/no-literal-colors': 'error',
'translation-vars/no-template-vars': ['error', true],
'i18n-strings/no-template-vars': ['error', true],
camelcase: [
'error',
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "eslint-plugin-translation-vars",
"name": "eslint-plugin-i18n-strings",
"version": "1.0.0",
"description": "Warns about translation variables",
"main": "index.js",
Expand Down
99 changes: 34 additions & 65 deletions superset-frontend/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"dom-to-pdf": "^0.3.2",
"echarts": "^5.6.0",
"emotion-rgba": "0.0.12",
"eslint-plugin-i18n-strings": "file:eslint-rules/eslint-plugin-i18n-strings",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"fuse.js": "^7.0.0",
Expand Down Expand Up @@ -321,8 +322,7 @@
"eslint-plugin-react-prefer-function-component": "^3.3.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testing-library": "^6.4.0",
"eslint-plugin-theme-colors": "file:tools/eslint-plugin-theme-colors",
"eslint-plugin-translation-vars": "file:tools/eslint-plugin-translation-vars",
"eslint-plugin-theme-colors": "file:eslint-rules/eslint-plugin-theme-colors",
"exports-loader": "^5.0.0",
"fetch-mock": "^7.7.3",
"fork-ts-checker-webpack-plugin": "^9.0.2",
Expand Down

0 comments on commit 8d1fb9c

Please sign in to comment.