Skip to content

Commit

Permalink
feat: Adding sort-destructure-keys plugin; updating Prettier to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
mryechkin committed Aug 4, 2023
1 parent 4696969 commit e1b46ac
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ $ npm install -D eslint-config-acme

This will install the shared config, as well as its peer dependencies:

- eslint
- eslint-config-airbnb
- eslint-config-prettier
- eslint-import-resolver-alias
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-prettier
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-simple-import-sort
- eslint-plugin-tailwindcss
- prettier
- prettier-plugin-tailwindcss
- [eslint](https://github.com/eslint/eslint)
- [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb)
- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
- [eslint-import-resolver-alias](https://github.com/johvin/eslint-import-resolver-alias)
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
- [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
- [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
- [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
- [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
- [eslint-plugin-sort-destructure-keys](https://github.com/mthadley/eslint-plugin-sort-destructure-keys)
- [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
- [prettier](https://github.com/prettier/prettier)
- [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)

**NOTE:** if you are on NPM <7, you will need to install these manually:

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
jsx: true,
},
},
plugins: ['simple-import-sort', 'import', 'tailwindcss'],
plugins: ['import', 'simple-import-sort', 'sort-destructure-keys', 'tailwindcss'],
rules: {
...base,
...react,
Expand Down
1 change: 1 addition & 0 deletions lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
},
],
'simple-import-sort/exports': 'error',
'sort-destructure-keys/sort-destructure-keys': 'warn',
'tailwindcss/classnames-order': 'off',
'no-console': 'warn',
'no-nested-ternary': 'off',
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-acme",
"version": "2.1.0",
"version": "2.2.0",
"description": "ESLint + Prettier config for React",
"main": "index.js",
"engines": {
Expand All @@ -18,19 +18,20 @@
"lint:fix": "eslint --fix"
},
"peerDependencies": {
"eslint": "^8.29",
"eslint": "^8.46",
"eslint-config-airbnb": "^19.0",
"eslint-config-prettier": "^8.5",
"eslint-config-prettier": "^8.10",
"eslint-import-resolver-alias": "^1.1",
"eslint-plugin-import": "^2.26",
"eslint-plugin-jsx-a11y": "^6.7",
"eslint-plugin-prettier": "^4.2",
"eslint-plugin-react": "^7.32",
"eslint-plugin-jsx-a11y": "^6.6",
"eslint-plugin-prettier": "^5.0",
"eslint-plugin-react": "^7.33",
"eslint-plugin-react-hooks": "^4.6",
"eslint-plugin-simple-import-sort": "^10.0",
"eslint-plugin-tailwindcss": "^3.11",
"prettier": "^2.8",
"prettier-plugin-tailwindcss": "^0.3"
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-tailwindcss": "^3.13",
"prettier": "^3.0.1",
"prettier-plugin-tailwindcss": "^0.4.1"
},
"keywords": [
"eslint",
Expand Down

0 comments on commit e1b46ac

Please sign in to comment.