@atomicsmash/coding-standards 18.0.0-beta.3 → 18.0.0-beta.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atomicsmash/coding-standards
2
2
 
3
+ ## 18.0.0-beta.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#542](https://github.com/AtomicSmash/packages/pull/542) [`7b60117`](https://github.com/AtomicSmash/packages/commit/7b60117254724918905e46bfc635bebc6ff7c9ad) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Further fixes to the beta eslint config
8
+
9
+ - Updated dependencies []:
10
+ - @atomicsmash/eslint-config@18.0.0-beta.5
11
+ - @atomicsmash/browserslist-config@18.0.0-beta.5
12
+
13
+ ## 18.0.0-beta.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [#540](https://github.com/AtomicSmash/packages/pull/540) [`01ebb55`](https://github.com/AtomicSmash/packages/commit/01ebb5548e71a6380b086514e091cf0f39a264d3) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fixes for new ESLint config
18
+
19
+ - Updated dependencies [[`01ebb55`](https://github.com/AtomicSmash/packages/commit/01ebb5548e71a6380b086514e091cf0f39a264d3)]:
20
+ - @atomicsmash/eslint-config@18.0.0-beta.4
21
+ - @atomicsmash/browserslist-config@18.0.0-beta.4
22
+
3
23
  ## 18.0.0-beta.3
4
24
 
5
25
  ### Major Changes
@@ -3,10 +3,10 @@ const WARN = 1;
3
3
  const ERROR = 2;
4
4
 
5
5
  import js from "@eslint/js";
6
- import esLintComments from "@eslint-community/eslint-plugin-eslint-comments";
6
+ import esLintComments from "@eslint-community/eslint-plugin-eslint-comments/configs";
7
7
  import { defineConfig } from "eslint/config";
8
8
  import importPlugin from "eslint-plugin-import";
9
- import { playwrightConfigs } from "eslint-plugin-playwright";
9
+ import { default as playwrightPlugin } from "eslint-plugin-playwright";
10
10
  import reactPlugin from "eslint-plugin-react";
11
11
  import reactHooksPlugin from "eslint-plugin-react-hooks";
12
12
  import globals from "globals";
@@ -24,14 +24,14 @@ export const config = defineConfig([
24
24
  ],
25
25
  extends: [
26
26
  js.configs.recommended,
27
- esLintComments.configs.recommended,
27
+ esLintComments.recommended,
28
28
  tseslint.configs.strictTypeChecked,
29
29
  tseslint.configs.stylisticTypeChecked,
30
+ importPlugin.flatConfigs.recommended,
30
31
  importPlugin.flatConfigs.typescript,
31
32
  ],
32
33
  plugins: {
33
34
  "@typescript-eslint": tseslint.plugin,
34
- import: importPlugin,
35
35
  },
36
36
  languageOptions: {
37
37
  ecmaVersion: 2022,
@@ -69,8 +69,8 @@ export const config = defineConfig([
69
69
  "prefer-const": [ERROR],
70
70
  "no-var": [ERROR],
71
71
  "import/no-duplicates": WARN,
72
- "eslint-comments/no-unused-disable": [ERROR],
73
- "eslint-comments/require-description": [
72
+ "@eslint-community/eslint-comments/no-unused-disable": [ERROR],
73
+ "@eslint-community/eslint-comments/require-description": [
74
74
  ERROR,
75
75
  { ignore: ["eslint-enable"] },
76
76
  ],
@@ -106,6 +106,12 @@ export const config = defineConfig([
106
106
  },
107
107
  ],
108
108
  },
109
+ settings: {
110
+ "import/resolver": {
111
+ typescript: true,
112
+ node: true,
113
+ },
114
+ },
109
115
  },
110
116
  {
111
117
  files: ["*.cjs"],
@@ -130,7 +136,7 @@ export const config = defineConfig([
130
136
  extends: [
131
137
  reactPlugin.configs.flat.recommended,
132
138
  reactPlugin.configs.flat["jsx-runtime"],
133
- reactHooksPlugin.configs.flat["recommended-latest"],
139
+ reactHooksPlugin.configs.flat.recommended,
134
140
  ],
135
141
  settings: {
136
142
  react: {
@@ -150,7 +156,7 @@ export const config = defineConfig([
150
156
 
151
157
  export const playwrightConfig = defineConfig([
152
158
  {
153
- extends: [playwrightConfigs["flat/recommended"]],
159
+ extends: [playwrightPlugin.configs["flat/recommended"]],
154
160
  rules: {
155
161
  "playwright/expect-expect": [
156
162
  ERROR,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicsmash/coding-standards",
3
3
  "type": "module",
4
- "version": "18.0.0-beta.3",
4
+ "version": "18.0.0-beta.5",
5
5
  "description": "A collection of coding standards configurations.",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
@@ -9,14 +9,18 @@
9
9
  "@cspell/cspell-types": "^9.7.0"
10
10
  },
11
11
  "peerDependencies": {
12
- "@atomicsmash/browserslist-config": "^18.0.0-beta.3",
13
- "@atomicsmash/eslint-config": "^18.0.0-beta.3",
12
+ "@atomicsmash/browserslist-config": "^18.0.0-beta.5",
13
+ "@atomicsmash/eslint-config": "^18.0.0-beta.5",
14
14
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
15
15
  "@eslint/js": "^8.57.1",
16
16
  "@wordpress/stylelint-config": "^23.33.0",
17
17
  "eslint": "^8.57.1",
18
18
  "eslint-config-prettier": "^8.10.2",
19
+ "eslint-import-resolver-typescript": "^3.10.1",
19
20
  "eslint-plugin-import": "^2.32.0",
21
+ "eslint-plugin-playwright": "^2.10.2",
22
+ "eslint-plugin-react": "^7.37.5",
23
+ "eslint-plugin-react-hooks": "^7.1.1",
20
24
  "globals": "^13.24.0",
21
25
  "prettier": "^3.8.1",
22
26
  "stylelint": "^16.26.1",