Skip to content

Commit

Permalink
Update ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Jun 29, 2024
1 parent db48796 commit debd618
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 28 deletions.
15 changes: 11 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// @ts-check
import path from "path";
import { fileURLToPath } from "url";

import { fixupPluginRules } from "@eslint/compat";
import { FlatCompat } from "@eslint/eslintrc";
import eslintJs from "@eslint/js";
Expand All @@ -11,9 +14,6 @@ import sonarjs from "eslint-plugin-sonarjs";
import globals from "globals";
import eslintTs from "typescript-eslint";

import path from "path";
import { fileURLToPath } from "url";

const project = "./tsconfig.json";
const filename = fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
Expand Down Expand Up @@ -214,7 +214,14 @@ export default eslintTs.config(
order: "asc",
orderImportKind: "asc",
},
groups: ["external", "parent", "sibling", "type"],
groups: [
"builtin",
["external", "internal"],
"parent",
"sibling",
"index",
"type",
],
"newlines-between": "always",
}],
"jsdoc/check-alignment": "error",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@assertive-ts/core": "^2.1.0",
"@eslint/compat": "^1.1.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.5.0",
"@eslint/js": "^9.6.0",
"@react-native/babel-preset": "^0.74.84",
"@stylistic/eslint-plugin": "^2.3.0",
"@testing-library/react-native": "^12.5.1",
Expand All @@ -78,7 +78,7 @@
"@types/react": "^18.3.3",
"@types/react-test-renderer": "^18.3.0",
"@types/sinon": "^17.0.3",
"eslint": "^9.5.0",
"eslint": "^9.6.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-etc": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions register.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-check
import { createRequire } from "module";

import pino from "pino";
import pinoPretty from "pino-pretty";

import { createRequire } from "module";

const start = Date.now();
const logger = pino(pinoPretty({ colorize: true }));
const require = createRequire(import.meta.url);
Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1205,14 +1205,14 @@ __metadata:
languageName: node
linkType: hard

"@eslint/config-array@npm:^0.16.0":
version: 0.16.0
resolution: "@eslint/config-array@npm:0.16.0"
"@eslint/config-array@npm:^0.17.0":
version: 0.17.0
resolution: "@eslint/config-array@npm:0.17.0"
dependencies:
"@eslint/object-schema": "npm:^2.1.4"
debug: "npm:^4.3.1"
minimatch: "npm:^3.0.5"
checksum: 10/6c1716f896a5bd290a2987ac28ec4fe18f052d2338ccf7822107eb0a6b974c44e6297cb7c9d6e0c5718c510e6c8e53043bea04cf4836dcb26a57e0255bfe99bc
minimatch: "npm:^3.1.2"
checksum: 10/4609b94519cd63ed1aba1429a53c0eb3cb5585056ffaa10184f0b7b91ceaed7ed5e625da3b5b4ffcc9b9093be8d6be7fc46111885936d6543890efb016aa303f
languageName: node
linkType: hard

Expand All @@ -1233,10 +1233,10 @@ __metadata:
languageName: node
linkType: hard

"@eslint/js@npm:9.5.0, @eslint/js@npm:^9.5.0":
version: 9.5.0
resolution: "@eslint/js@npm:9.5.0"
checksum: 10/206364e3a074eaaeccc2b9e1e3f129539106a81ec634f32c51bc1699e0c4a47ab3e6480a6484a198bca6406888ba8f2917c35a87296680905d146075b5ed2738
"@eslint/js@npm:9.6.0, @eslint/js@npm:^9.6.0":
version: 9.6.0
resolution: "@eslint/js@npm:9.6.0"
checksum: 10/b2ba6cab129630664af9539cb80116207f472a31830dd129b9e0bded2b3212a9eb5f664b9cddccc34a32c252add1f01c0cd6b91973b8ec2a274d643db356d82f
languageName: node
linkType: hard

Expand Down Expand Up @@ -5642,15 +5642,15 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^9.5.0":
version: 9.5.0
resolution: "eslint@npm:9.5.0"
"eslint@npm:^9.6.0":
version: 9.6.0
resolution: "eslint@npm:9.6.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.2.0"
"@eslint-community/regexpp": "npm:^4.6.1"
"@eslint/config-array": "npm:^0.16.0"
"@eslint/config-array": "npm:^0.17.0"
"@eslint/eslintrc": "npm:^3.1.0"
"@eslint/js": "npm:9.5.0"
"@eslint/js": "npm:9.6.0"
"@humanwhocodes/module-importer": "npm:^1.0.1"
"@humanwhocodes/retry": "npm:^0.3.0"
"@nodelib/fs.walk": "npm:^1.2.8"
Expand All @@ -5661,7 +5661,7 @@ __metadata:
escape-string-regexp: "npm:^4.0.0"
eslint-scope: "npm:^8.0.1"
eslint-visitor-keys: "npm:^4.0.0"
espree: "npm:^10.0.1"
espree: "npm:^10.1.0"
esquery: "npm:^1.5.0"
esutils: "npm:^2.0.2"
fast-deep-equal: "npm:^3.1.3"
Expand All @@ -5682,7 +5682,7 @@ __metadata:
text-table: "npm:^0.2.0"
bin:
eslint: bin/eslint.js
checksum: 10/47578c242659a398638918c6f61a12c3e1e0ca71733769a54fdfd7be6d7c4ca0824694861846959829784b23cbfca5aad9599714dc0f4ae48ffdcdafbfe67bea
checksum: 10/3230b13f30ab6204daf0413ef819d49c9b37cc54f246f39ed4b129b8e6ad0b4d4d30ad339c7196cb9110e28404f19cc028039481e629de77a5211ae761b9b122
languageName: node
linkType: hard

Expand All @@ -5699,7 +5699,7 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:^10.0.1":
"espree@npm:^10.0.1, espree@npm:^10.1.0":
version: 10.1.0
resolution: "espree@npm:10.1.0"
dependencies:
Expand Down Expand Up @@ -8577,7 +8577,7 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^3.0.2, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
"minimatch@npm:^3.0.2, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
dependencies:
Expand Down Expand Up @@ -10227,7 +10227,7 @@ __metadata:
"@babel/register": "npm:^7.24.6"
"@eslint/compat": "npm:^1.1.0"
"@eslint/eslintrc": "npm:^3.1.0"
"@eslint/js": "npm:^9.5.0"
"@eslint/js": "npm:^9.6.0"
"@react-native/babel-preset": "npm:^0.74.84"
"@stylistic/eslint-plugin": "npm:^2.3.0"
"@testing-library/react-native": "npm:^12.5.1"
Expand All @@ -10241,7 +10241,7 @@ __metadata:
"@types/sinon": "npm:^17.0.3"
babel-plugin-module-resolver: "npm:^5.0.2"
dot-prop-immutable: "npm:^2.1.1"
eslint: "npm:^9.5.0"
eslint: "npm:^9.6.0"
eslint-import-resolver-typescript: "npm:^3.6.1"
eslint-plugin-deprecation: "npm:^3.0.0"
eslint-plugin-etc: "npm:^2.0.3"
Expand Down

0 comments on commit debd618

Please sign in to comment.