@paratco/eslint-config 0.7.5 → 0.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "0.7.5",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -20,22 +20,24 @@
20
20
  "format": "prettier --write src/"
21
21
  },
22
22
  "peerDependencies": {
23
- "eslint": "^8.57.0",
24
- "typescript-eslint": "^7.16.0"
23
+ "eslint": "^9.9.0",
24
+ "typescript-eslint": "^8.1.0"
25
25
  },
26
26
  "optionalDependencies": {
27
- "prettier": "^3.3.2"
27
+ "prettier": "^3.3.3"
28
28
  },
29
29
  "dependencies": {
30
- "@eslint/js": "^9.6.0",
31
- "@stylistic/eslint-plugin": "^2.3.0",
30
+ "@eslint/js": "^9.9.0",
31
+ "@stylistic/eslint-plugin": "^2.6.4",
32
32
  "@types/eslint__js": "^8.42.3",
33
+ "eslint": "^9.9.0",
33
34
  "eslint-config-prettier": "^9.1.0",
34
35
  "eslint-import-resolver-typescript": "^3.6.1",
35
- "eslint-plugin-import": "^2.29.1",
36
- "eslint-plugin-react": "^7.34.3",
36
+ "eslint-plugin-import-x": "^3.1.0",
37
+ "eslint-plugin-react": "^7.35.0",
37
38
  "eslint-plugin-react-hooks": "^4.6.2",
38
- "eslint-plugin-react-refresh": "^0.4.7",
39
- "globals": "^15.8.0"
39
+ "eslint-plugin-react-refresh": "^0.4.9",
40
+ "globals": "^15.9.0",
41
+ "typescript-eslint": "^8.1.0"
40
42
  }
41
43
  }
@@ -1,18 +1,25 @@
1
- import eslint from "@eslint/js";
2
- import tseslint from "typescript-eslint";
3
-
4
- // Custom Rules
5
- import typescriptRules from "../lints/typescript/index.js";
6
-
7
- export default [
8
- // Set predefined configs
9
- eslint.configs.recommended,
10
- ...tseslint.configs.strictTypeChecked,
11
- ...tseslint.configs.stylisticTypeChecked,
12
-
13
- // TypeScript Rules
14
- {
15
- files: ["**/*.{ts,tsx}"],
16
- rules: typescriptRules
17
- }
18
- ];
1
+ import eslint from "@eslint/js";
2
+ import tsEslint from "typescript-eslint";
3
+
4
+ // Custom Rules
5
+ import javascriptRules from "../lints/javascript/index.js";
6
+ import typescriptRules from "../lints/typescript/index.js";
7
+
8
+ export default [
9
+ // Set predefined configs
10
+ eslint.configs.recommended,
11
+ ...tsEslint.configs.strictTypeChecked,
12
+ ...tsEslint.configs.stylisticTypeChecked,
13
+
14
+ // JavaScript Rules
15
+ {
16
+ files: ["**/*.{js,jsx,mjs,cjs}"],
17
+ rules: javascriptRules
18
+ },
19
+
20
+ // TypeScript Rules
21
+ {
22
+ files: ["**/*.{ts,tsx}"],
23
+ rules: typescriptRules
24
+ }
25
+ ];
@@ -1,25 +1,25 @@
1
- import eslintPluginImport from "eslint-plugin-import";
2
-
3
- // Custom Rules
4
- import importRules from "../lints/import/index.js";
5
-
6
- export default [
7
- // ESLint Plugin Import
8
- {
9
- files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
10
- plugins: {
11
- import: eslintPluginImport
12
- },
13
- settings: {
14
- "import/resolver": {
15
- typescript: {
16
- alwaysTryTypes: true
17
- }
18
- }
19
- },
20
- rules: {
21
- ...eslintPluginImport.configs.recommended.rules,
22
- ...importRules
23
- }
24
- }
25
- ];
1
+ import eslintPluginImportX from "eslint-plugin-import-x";
2
+
3
+ // Custom Rules
4
+ import importXRules from "../lints/import/index.js";
5
+
6
+ export default [
7
+ // ESLint Plugin Import
8
+ {
9
+ files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
10
+ plugins: {
11
+ importX: eslintPluginImportX
12
+ },
13
+ settings: {
14
+ "import-x/resolver": {
15
+ typescript: {
16
+ alwaysTryTypes: true
17
+ }
18
+ }
19
+ },
20
+ rules: {
21
+ ...eslintPluginImportX.configs.recommended.rules,
22
+ ...importXRules
23
+ }
24
+ }
25
+ ];
@@ -0,0 +1,9 @@
1
+ export default {
2
+ // https://eslint.org/docs/latest/rules/eqeqeq
3
+ // Require the use of === and !==
4
+ eqeqeq: ["warn"],
5
+
6
+ // https://eslint.org/docs/latest/rules/curly
7
+ // Enforce consistent brace style for all control statements
8
+ curly: ["warn", "all"]
9
+ };