@atomicsmash/coding-standards 18.0.0-beta.9 → 18.0.1-beta.0
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 +12 -89
- package/MIGRATING.md +77 -0
- package/dist/eslint/index.d.ts.map +1 -1
- package/dist/eslint/index.js +1 -0
- package/package.json +25 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,111 +1,34 @@
|
|
|
1
1
|
# @atomicsmash/coding-standards
|
|
2
2
|
|
|
3
|
-
## 18.0.
|
|
3
|
+
## 18.0.1-beta.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#580](https://github.com/AtomicSmash/packages/pull/580) [`87c5a17`](https://github.com/AtomicSmash/packages/commit/87c5a1758cd5cb0a73f0754649788182e316a038) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update deps
|
|
8
8
|
|
|
9
|
-
- Updated dependencies []:
|
|
10
|
-
- @atomicsmash/browserslist-config@18.0.
|
|
11
|
-
|
|
12
|
-
## 18.0.0-beta.8
|
|
13
|
-
|
|
14
|
-
### Patch Changes
|
|
15
|
-
|
|
16
|
-
- [#553](https://github.com/AtomicSmash/packages/pull/553) [`f5f0051`](https://github.com/AtomicSmash/packages/commit/f5f0051589f88fda628c714112c2c297cd8ced76) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Fix ESLint config exports
|
|
17
|
-
|
|
18
|
-
- Updated dependencies []:
|
|
19
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.8
|
|
9
|
+
- Updated dependencies [[`87c5a17`](https://github.com/AtomicSmash/packages/commit/87c5a1758cd5cb0a73f0754649788182e316a038)]:
|
|
10
|
+
- @atomicsmash/browserslist-config@18.0.1-beta.0
|
|
20
11
|
|
|
21
|
-
## 18.0.0
|
|
12
|
+
## 18.0.0
|
|
22
13
|
|
|
23
14
|
### Major Changes
|
|
24
15
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
- [#548](https://github.com/AtomicSmash/packages/pull/548) [`3cbb8b8`](https://github.com/AtomicSmash/packages/commit/3cbb8b8b7b1e588a30786cae9f4675ebcf143492) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Convert configs to typescript and use proper exports setup
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- [#548](https://github.com/AtomicSmash/packages/pull/548) [`3cbb8b8`](https://github.com/AtomicSmash/packages/commit/3cbb8b8b7b1e588a30786cae9f4675ebcf143492) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update deps
|
|
32
|
-
|
|
33
|
-
- Updated dependencies []:
|
|
34
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.7
|
|
35
|
-
|
|
36
|
-
## 18.0.0-beta.6
|
|
37
|
-
|
|
38
|
-
### Patch Changes
|
|
39
|
-
|
|
40
|
-
- [#544](https://github.com/AtomicSmash/packages/pull/544) [`8e4a0b7`](https://github.com/AtomicSmash/packages/commit/8e4a0b75e2d007c67dd6db0aa8d66d055b62f39e) Thanks [@mikeybinns](https://github.com/mikeybinns)! - More changes to eslint beta config
|
|
41
|
-
|
|
42
|
-
- Updated dependencies []:
|
|
43
|
-
- @atomicsmash/eslint-config@18.0.0-beta.6
|
|
44
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.6
|
|
45
|
-
|
|
46
|
-
## 18.0.0-beta.5
|
|
47
|
-
|
|
48
|
-
### Patch Changes
|
|
49
|
-
|
|
50
|
-
- [#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
|
|
16
|
+
- Update TS base config
|
|
51
17
|
|
|
52
|
-
-
|
|
53
|
-
- @atomicsmash/eslint-config@18.0.0-beta.5
|
|
54
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.5
|
|
18
|
+
- Remove @atomicsmash/eslint-config package as a peer dependency to avoid conflicts with new config
|
|
55
19
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Patch Changes
|
|
59
|
-
|
|
60
|
-
- [#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
|
|
61
|
-
|
|
62
|
-
- Updated dependencies [[`01ebb55`](https://github.com/AtomicSmash/packages/commit/01ebb5548e71a6380b086514e091cf0f39a264d3)]:
|
|
63
|
-
- @atomicsmash/eslint-config@18.0.0-beta.4
|
|
64
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.4
|
|
65
|
-
|
|
66
|
-
## 18.0.0-beta.3
|
|
67
|
-
|
|
68
|
-
### Major Changes
|
|
69
|
-
|
|
70
|
-
- [#533](https://github.com/AtomicSmash/packages/pull/533) [`7fd9db6`](https://github.com/AtomicSmash/packages/commit/7fd9db62a9359be302c865aeacf2e5dfc663c31a) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Update TS base config
|
|
71
|
-
|
|
72
|
-
### Patch Changes
|
|
73
|
-
|
|
74
|
-
- Updated dependencies []:
|
|
75
|
-
- @atomicsmash/eslint-config@18.0.0-beta.3
|
|
76
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.3
|
|
77
|
-
|
|
78
|
-
## 18.0.0-beta.2
|
|
20
|
+
- Convert configs to typescript and use proper exports setup
|
|
79
21
|
|
|
80
22
|
### Minor Changes
|
|
81
23
|
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
### Patch Changes
|
|
85
|
-
|
|
86
|
-
- Updated dependencies []:
|
|
87
|
-
- @atomicsmash/eslint-config@18.0.0-beta.2
|
|
88
|
-
- @atomicsmash/browserslist-config@18.0.0-beta.2
|
|
89
|
-
|
|
90
|
-
## 17.0.3-beta.1
|
|
91
|
-
|
|
92
|
-
### Patch Changes
|
|
93
|
-
|
|
94
|
-
- [#524](https://github.com/AtomicSmash/packages/pull/524) [`b7b83b5`](https://github.com/AtomicSmash/packages/commit/b7b83b5414d7e6899a5ad0805d5d47390d233a78) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Dependency updates
|
|
95
|
-
|
|
96
|
-
- Updated dependencies [[`b7b83b5`](https://github.com/AtomicSmash/packages/commit/b7b83b5414d7e6899a5ad0805d5d47390d233a78)]:
|
|
97
|
-
- @atomicsmash/eslint-config@17.0.3-beta.1
|
|
98
|
-
- @atomicsmash/browserslist-config@17.0.3-beta.1
|
|
99
|
-
|
|
100
|
-
## 17.0.3-beta.0
|
|
24
|
+
- New ESLint flat config
|
|
101
25
|
|
|
102
26
|
### Patch Changes
|
|
103
27
|
|
|
104
|
-
-
|
|
28
|
+
- Update dependencies
|
|
105
29
|
|
|
106
|
-
- Updated dependencies
|
|
107
|
-
- @atomicsmash/
|
|
108
|
-
- @atomicsmash/browserslist-config@17.0.3-beta.0
|
|
30
|
+
- Updated dependencies:
|
|
31
|
+
- @atomicsmash/browserslist-config@18.0.0
|
|
109
32
|
|
|
110
33
|
## 17.0.2
|
|
111
34
|
|
package/MIGRATING.md
CHANGED
|
@@ -2,6 +2,83 @@
|
|
|
2
2
|
|
|
3
3
|
This document contains information on how to migrate from one version to the next version.
|
|
4
4
|
|
|
5
|
+
## v17 --> v18
|
|
6
|
+
|
|
7
|
+
### Using proper exports
|
|
8
|
+
|
|
9
|
+
All configs are now compiled from a src folder to property generate minified configs and types. Because of this change in structure, the resulting file locations have been changed. To ensure this is handled properly in future, we now provide explicit exports via package.json for each config type
|
|
10
|
+
|
|
11
|
+
e.g.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import config from "@atomicsmash/coding-standards/prettier";
|
|
15
|
+
export default config;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
All exports are:
|
|
19
|
+
@atomicsmash/coding-standards/prettier
|
|
20
|
+
@atomicsmash/coding-standards/cspell
|
|
21
|
+
@atomicsmash/coding-standards/stylelint
|
|
22
|
+
@atomicsmash/coding-standards/stylelint/classic
|
|
23
|
+
@atomicsmash/coding-standards/stylelint/theme-json
|
|
24
|
+
@atomicsmash/coding-standards/stylelint/tailwind
|
|
25
|
+
@atomicsmash/coding-standards/typescript/base
|
|
26
|
+
@atomicsmash/coding-standards/typescript/cypress
|
|
27
|
+
@atomicsmash/coding-standards/eslint (NEW)
|
|
28
|
+
@atomicsmash/coding-standards/beta/biome (NEW/EXPERIMENTAL)
|
|
29
|
+
|
|
30
|
+
### New ESLint config
|
|
31
|
+
|
|
32
|
+
Our coding standards now support the new ESLint flat config style, which enables us to update past ESLint v8.
|
|
33
|
+
|
|
34
|
+
The @atomicsmash/eslint-config has been deprecated and will no longer be updated/supported. You must move to the new config which is now contained within the coding-standards config. If your version of this package was installed by peer deps, then it will disappear with this update, otherwise be sure to uninstall it to avoid conflicts with the new config/peer deps.
|
|
35
|
+
|
|
36
|
+
To migrate to the new config, create an `eslint.config.js` file in your project with this initial config:
|
|
37
|
+
|
|
38
|
+
```js
|
|
39
|
+
import {
|
|
40
|
+
recommendedConfig as recommendedAtomicSmashConfig,
|
|
41
|
+
playwrightConfig as defaultAtomicSmashPlaywrightConfig,
|
|
42
|
+
} from "@atomicsmash/coding-standards/eslint";
|
|
43
|
+
import { defineConfig, globalIgnores } from "@eslint/config-helpers";
|
|
44
|
+
|
|
45
|
+
export default defineConfig([
|
|
46
|
+
globalIgnores([
|
|
47
|
+
// .eslintignore files are no longer supported.
|
|
48
|
+
// Add all the lines from your .eslintignore file here.
|
|
49
|
+
]),
|
|
50
|
+
{
|
|
51
|
+
files: [
|
|
52
|
+
"**/*.js",
|
|
53
|
+
"**/*.cjs",
|
|
54
|
+
"**/*.mjs",
|
|
55
|
+
"**/*.ts",
|
|
56
|
+
"**/*.cts",
|
|
57
|
+
"**/*.mts",
|
|
58
|
+
],
|
|
59
|
+
extends: [recommendedAtomicSmashConfig],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
// Only needed if you have playwright tests.
|
|
63
|
+
files: ["**/*.test.ts"],
|
|
64
|
+
extends: [defaultAtomicSmashPlaywrightConfig],
|
|
65
|
+
},
|
|
66
|
+
]);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Then update the script line in package.json like so:
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
- "lint:eslint": "eslint --cache --cache-strategy=content --cache-location ./node_modules/.cache/eslint_theme . --ext .js,.cjs,.mjs,.jsx,.ts,.cts,.mts,.tsx",
|
|
73
|
+
+ "lint:eslint": "eslint",
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
It's likely there will be new rules for you to fix with this update due to the updates of dependencies and better application of rules by default.
|
|
77
|
+
|
|
78
|
+
### Updated base TS config
|
|
79
|
+
|
|
80
|
+
The Base TS config has been updated with more modern settings and values. Check the commit history for the changed settings.
|
|
81
|
+
|
|
5
82
|
## v16 --> v17
|
|
6
83
|
|
|
7
84
|
### Removal of commitlint.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,MAAM,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,MAAM,EAAE,MAAM,wBAAwB,CAAC;AA4LrE,eAAO,MAAM,gBAAgB,UAe3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,UAK5B,CAAC"}
|
package/dist/eslint/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/coding-standards",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "18.0.
|
|
4
|
+
"version": "18.0.1-beta.0",
|
|
5
5
|
"description": "A collection of coding standards configurations.",
|
|
6
6
|
"files": [
|
|
7
7
|
"./dist/**/*",
|
|
@@ -28,35 +28,47 @@
|
|
|
28
28
|
"types": "./dist/prettier/index.d.ts",
|
|
29
29
|
"default": "./dist/prettier/index.js"
|
|
30
30
|
},
|
|
31
|
-
"./stylelint
|
|
32
|
-
"types": "./dist/stylelint
|
|
33
|
-
"default": "./dist/stylelint
|
|
31
|
+
"./stylelint": {
|
|
32
|
+
"types": "./dist/stylelint/index.d.ts",
|
|
33
|
+
"default": "./dist/stylelint/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./stylelint/classic": {
|
|
36
|
+
"types": "./dist/stylelint/classic.d.ts",
|
|
37
|
+
"default": "./dist/stylelint/classic.js"
|
|
38
|
+
},
|
|
39
|
+
"./stylelint/theme-json": {
|
|
40
|
+
"types": "./dist/stylelint/theme-json.d.ts",
|
|
41
|
+
"default": "./dist/stylelint/theme-json.js"
|
|
42
|
+
},
|
|
43
|
+
"./stylelint/tailwind": {
|
|
44
|
+
"types": "./dist/stylelint/tailwind.d.ts",
|
|
45
|
+
"default": "./dist/stylelint/tailwind.js"
|
|
34
46
|
},
|
|
35
47
|
"./typescript/*": "./typescript/*.json",
|
|
36
48
|
"./beta/biome": "./beta/biome/biome.jsonc"
|
|
37
49
|
},
|
|
38
50
|
"devDependencies": {
|
|
39
|
-
"@cspell/cspell-types": "^
|
|
51
|
+
"@cspell/cspell-types": "^10.0.1"
|
|
40
52
|
},
|
|
41
53
|
"peerDependencies": {
|
|
42
|
-
"@atomicsmash/browserslist-config": "^18.0.
|
|
43
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
54
|
+
"@atomicsmash/browserslist-config": "^18.0.1-beta.0",
|
|
55
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
44
56
|
"@eslint/js": "^9.39.4",
|
|
45
|
-
"@wordpress/stylelint-config": "^23.
|
|
46
|
-
"eslint": "^9.
|
|
47
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
57
|
+
"@wordpress/stylelint-config": "^23.40.1",
|
|
58
|
+
"eslint": "^9.39.4",
|
|
59
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
48
60
|
"eslint-plugin-import": "^2.32.0",
|
|
49
|
-
"eslint-plugin-playwright": "^2.10.
|
|
61
|
+
"eslint-plugin-playwright": "^2.10.4",
|
|
50
62
|
"eslint-plugin-react": "^7.37.5",
|
|
51
63
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
52
64
|
"globals": "^17.6.0",
|
|
53
|
-
"prettier": "^3.8.
|
|
65
|
+
"prettier": "^3.8.4",
|
|
54
66
|
"stylelint": "^16.26.1",
|
|
55
67
|
"stylelint-config-standard": "^39.0.1",
|
|
56
68
|
"stylelint-config-standard-scss": "^16.0.0",
|
|
57
69
|
"stylelint-no-restricted-syntax": "^2.2.1",
|
|
58
70
|
"stylelint-order": "^7.0.1",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"typescript-eslint": "^8.61.1"
|
|
60
72
|
},
|
|
61
73
|
"keywords": [
|
|
62
74
|
"atomic",
|