summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-06-04 10:34:34 +0530
committerSunil Shetye2025-06-04 10:34:51 +0530
commit7c0d0726c33102fb866da880f6dfac10fa7bbcbe (patch)
tree4f1aa6d9d284893ebcb10e9d2034fd97abb16013
parent4f516bcd665b7b19980f483cec9a22e1124fc216 (diff)
downloadCommon-Interface-Project-7c0d0726c33102fb866da880f6dfac10fa7bbcbe.tar.gz
Common-Interface-Project-7c0d0726c33102fb866da880f6dfac10fa7bbcbe.tar.bz2
Common-Interface-Project-7c0d0726c33102fb866da880f6dfac10fa7bbcbe.zip
fix eslint config
-rw-r--r--blocks/eda-frontend/.eslintignore15
-rw-r--r--blocks/eda-frontend/eslint.config.mjs (renamed from blocks/eda-frontend/eslint.config.js)5
-rw-r--r--blocks/eda-frontend/package-lock.json33
-rw-r--r--blocks/eda-frontend/package.json1
4 files changed, 33 insertions, 21 deletions
diff --git a/blocks/eda-frontend/.eslintignore b/blocks/eda-frontend/.eslintignore
deleted file mode 100644
index d6c29ac1..00000000
--- a/blocks/eda-frontend/.eslintignore
+++ /dev/null
@@ -1,15 +0,0 @@
-
-/build/**
-/coverage/**
-/docs/**
-/jsdoc/**
-/templates/**
-/tests/bench/**
-/tests/fixtures/**
-/tests/performance/**
-/tmp/**
-/tools/internal-rules/node_modules/**
-test.js
-!.eslintrc.js
-node_modules/**
-/node_modules/**
diff --git a/blocks/eda-frontend/eslint.config.js b/blocks/eda-frontend/eslint.config.mjs
index 36f35ee7..89aef643 100644
--- a/blocks/eda-frontend/eslint.config.js
+++ b/blocks/eda-frontend/eslint.config.mjs
@@ -6,6 +6,7 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks'
import importPlugin from 'eslint-plugin-import'
import nPlugin from 'eslint-plugin-n'
import promisePlugin from 'eslint-plugin-promise'
+import globals from 'globals'
export default [
js.configs.recommended,
@@ -25,8 +26,8 @@ export default [
sourceType: 'module'
},
globals: {
- Atomics: 'readonly',
- SharedArrayBuffer: 'readonly'
+ ...globals.browser,
+ ...globals.node
}
},
diff --git a/blocks/eda-frontend/package-lock.json b/blocks/eda-frontend/package-lock.json
index fb2d4502..9ff33a0b 100644
--- a/blocks/eda-frontend/package-lock.json
+++ b/blocks/eda-frontend/package-lock.json
@@ -37,6 +37,7 @@
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
+ "globals": "^16.2.0",
"react-dev-utils": "^12.0.1",
"react-scripts": "^5.0.1",
"source-map-explorer": "^2.5.2"
@@ -1181,6 +1182,16 @@
"@babel/core": "^7.0.0-0"
}
},
+ "node_modules/@babel/plugin-transform-classes/node_modules/globals": {
+ "version": "11.12.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/@babel/plugin-transform-computed-properties": {
"version": "7.20.7",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.20.7.tgz",
@@ -1932,6 +1943,16 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@babel/traverse/node_modules/globals": {
+ "version": "11.12.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
+ "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/@babel/types": {
"version": "7.26.10",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz",
@@ -9497,12 +9518,16 @@
}
},
"node_modules/globals": {
- "version": "11.12.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
- "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+ "version": "16.2.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.2.0.tgz",
+ "integrity": "sha512-O+7l9tPdHCU320IigZZPj5zmRCFG9xHmx9cU8FqU2Rp+JN714seHV+2S9+JslCpY4gJwU2vOGox0wzgae/MCEg==",
"dev": true,
+ "license": "MIT",
"engines": {
- "node": ">=4"
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/globalthis": {
diff --git a/blocks/eda-frontend/package.json b/blocks/eda-frontend/package.json
index cd1eae90..ed687b30 100644
--- a/blocks/eda-frontend/package.json
+++ b/blocks/eda-frontend/package.json
@@ -52,6 +52,7 @@
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
+ "globals": "^16.2.0",
"react-dev-utils": "^12.0.1",
"react-scripts": "^5.0.1",
"source-map-explorer": "^2.5.2"