Skip to content

Commit 4696969

Browse files
committed
feat: [#2] Updating to use ES2022; updating import-sort to include more Node internals; peerDeps cleanup
1 parent 2137b2f commit 4696969

File tree

6 files changed

+26
-21
lines changed

6 files changed

+26
-21
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3
1111
- name: Setup Node.js environment
12-
uses: actions/setup-node@v2
12+
uses: actions/setup-node@v3
1313
with:
1414
node-version: '16.x'
1515
registry-url: https://registry.npmjs.org

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Mykhaylo Ryechkin
3+
Copyright (c) 2023 Mykhaylo Ryechkin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ To fix all automatically-fixable issues, you can add the following script to you
162162

163163
Note that you can update the above scripts as you see fit, this is just an example. See ESLint [CLI reference](https://eslint.org/docs/user-guide/command-line-interface) for more details.
164164

165+
## Author
166+
167+
[Mykhaylo Ryechkin](https://github.com/mryechkin)
168+
165169
## License
166170

167-
Licensed under MIT License.
171+
[MIT](https://choosealicense.com/licenses/mit/)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
jest: true,
1717
},
1818
parserOptions: {
19-
ecmaVersion: 2021,
19+
ecmaVersion: 2022,
2020
sourceType: 'module',
2121
ecmaFeatures: {
2222
jsx: true,

lib/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ module.exports = {
1515
groups: [
1616
// Node.js builtins
1717
[
18+
'^node:',
1819
'^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)',
1920
],
2021
// Packages. `react` related packages come first
2122
['^react', '^@?\\w'],
2223
// Side effect imports
2324
['^\\u0000'],
2425
// Internal packages
25-
['^(src|internals)(/.*|$)'],
26+
['^(~|src|internals)(/.*|$)'],
2627
// Parent imports. Put `..` last
2728
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
2829
// Other relative imports. Put same-folder imports and `.` last

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-acme",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "ESLint + Prettier config for React",
55
"main": "index.js",
66
"engines": {
@@ -18,19 +18,19 @@
1818
"lint:fix": "eslint --fix"
1919
},
2020
"peerDependencies": {
21-
"eslint": "^8.29.0",
22-
"eslint-config-airbnb": "^19.0.4",
23-
"eslint-config-prettier": "^8.5.0",
24-
"eslint-import-resolver-alias": "^1.1.2",
25-
"eslint-plugin-import": "^2.26.0",
26-
"eslint-plugin-jsx-a11y": "^6.6.1",
27-
"eslint-plugin-prettier": "^4.2.1",
28-
"eslint-plugin-react": "^7.31.11",
29-
"eslint-plugin-react-hooks": "^4.6.0",
30-
"eslint-plugin-simple-import-sort": "^8.0.0",
31-
"eslint-plugin-tailwindcss": "^3.7.1",
32-
"prettier": "^2.8.0",
33-
"prettier-plugin-tailwindcss": "^0.2.0"
21+
"eslint": "^8.29",
22+
"eslint-config-airbnb": "^19.0",
23+
"eslint-config-prettier": "^8.5",
24+
"eslint-import-resolver-alias": "^1.1",
25+
"eslint-plugin-import": "^2.26",
26+
"eslint-plugin-jsx-a11y": "^6.7",
27+
"eslint-plugin-prettier": "^4.2",
28+
"eslint-plugin-react": "^7.32",
29+
"eslint-plugin-react-hooks": "^4.6",
30+
"eslint-plugin-simple-import-sort": "^10.0",
31+
"eslint-plugin-tailwindcss": "^3.11",
32+
"prettier": "^2.8",
33+
"prettier-plugin-tailwindcss": "^0.3"
3434
},
3535
"keywords": [
3636
"eslint",
@@ -41,7 +41,7 @@
4141
],
4242
"author": {
4343
"name": "Mykhaylo Ryechkin",
44-
"url": "https://misha.wtf"
44+
"url": "https://github.com/mryechkin"
4545
},
4646
"license": "MIT",
4747
"repository": {

0 commit comments

Comments
 (0)