@oncehub/eslint-config 3.0.1 → 3.0.2
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 +3 -2
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import prettierConfig from "eslint-config-prettier";
|
|
|
3
3
|
import * as typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
4
4
|
import tsParser from "@typescript-eslint/parser";
|
|
5
5
|
import sonarjs from "eslint-plugin-sonarjs";
|
|
6
|
+
import globals from "globals";
|
|
6
7
|
|
|
7
8
|
export default [
|
|
8
9
|
js.configs.recommended,
|
|
@@ -12,10 +13,10 @@ export default [
|
|
|
12
13
|
files: ["**/*.{js,ts,jsx,tsx}"],
|
|
13
14
|
languageOptions: {
|
|
14
15
|
globals: {
|
|
16
|
+
...globals.browser,
|
|
17
|
+
...globals.node,
|
|
15
18
|
Atomics: "readonly",
|
|
16
19
|
SharedArrayBuffer: "readonly",
|
|
17
|
-
es6: true,
|
|
18
|
-
node: true,
|
|
19
20
|
},
|
|
20
21
|
parser: tsParser,
|
|
21
22
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oncehub/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "ESLint configuration for micro-services built using Node.js and TypeScript",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@types/eslint__js": "^8.42.3",
|
|
18
18
|
"eslint-config-prettier": "^9.1.0",
|
|
19
19
|
"eslint-plugin-sonarjs": "^2.0.4",
|
|
20
|
+
"globals": "^15.12.0",
|
|
20
21
|
"typescript-eslint": "^8.13.0"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|