Skip to content

Commit

Permalink
feat(react): ✨ add react rules
Browse files Browse the repository at this point in the history
🏁 Closes: #4
  • Loading branch information
jimmy-guzman committed Nov 17, 2021
1 parent cb0c1af commit 052ca34
Show file tree
Hide file tree
Showing 17 changed files with 806 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .commitlintrc.yml
Expand Up @@ -14,4 +14,8 @@ rules:
scope-empty: [2, never]
scope-case: [2, always, lower-case]
scope-enum:
[2, always, ['*', deps, base, typescript, jest, 'imports', 'style']]
[
2,
always,
['*', deps, base, typescript, jest, 'imports', 'style', 'react'],
]
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: setup pnpm
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.21.0
version: 6.21.1

- name: setup cache ${{ matrix.node }}
uses: actions/setup-node@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: setup pnpm
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.21.0
version: 6.21.1
- name: setup cache
uses: actions/setup-node@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@

# eslint-config-jimmy-guzman

> An opinionated ESLint configuration that targets typescript, javascript, and jest
> An opinionated ESLint configuration that targets typescript, javascript, react and jest
# Table of Contents

Expand Down Expand Up @@ -43,6 +43,7 @@ This package also includes rules for `jest` and `typescript` that can be used su
| base | `extends: 'jimmy-guzman'` | |
| jest | `extends: ['jimmy-guzman', 'jimmy-guzman/jest']` | |
| typescript | `extends: ['jimmy-guzman', 'jimmy-guzman/typescript']` | [here](#typescript) |
| react | `extends: ['jimmy-guzman', 'jimmy-guzman/react']` | |

### Typescript

Expand Down
18 changes: 18 additions & 0 deletions cspell.json
@@ -1,6 +1,8 @@
{
"version": "0.2",
"words": [
"activedescendant",
"autofocus",
"backreference",
"builtins",
"camelcase",
Expand All @@ -21,22 +23,38 @@
"eval",
"fdescribe",
"gitzy",
"iframe",
"isnan",
"lcov",
"listbox",
"multilines",
"nofunc",
"noninteractive",
"nonoctal",
"nvmrc",
"outdir",
"outfile",
"peerdeps",
"plusplus",
"pnpm",
"progressbar",
"proptypes",
"proto",
"radiogroup",
"ruleset",
"searchbox",
"setstate",
"shellcheck",
"spinbutton",
"streetsidesoftware",
"stylestic",
"tabbable",
"tabindex",
"tablist",
"textbox",
"textnodes",
"transpiles",
"treegrid",
"typeof",
"wagoid"
],
Expand Down
11 changes: 8 additions & 3 deletions package.json
@@ -1,12 +1,13 @@
{
"name": "eslint-config-jimmy-guzman",
"version": "1.0.0",
"description": "An opinionated ESLint configuration that targets typescript, javascript, and jest",
"description": "An opinionated ESLint configuration that targets typescript, javascript, react and jest",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./typescript": "./dist/typescript.js",
"./jest": "./dist/jest.js"
"./jest": "./dist/jest.js",
"./react": "./dist/react.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,6 +45,7 @@
"find-new-rules:jest": "eslint-find-rules --no-core --unused test/dist/jest.js",
"find-new-rules:imports": "eslint-find-rules --no-core --unused test/dist/imports.js",
"find-new-rules:ts": "eslint-find-rules --no-core --unused test/dist/typescript.js",
"find-new-rules:react": "eslint-find-rules --no-core --unused test/dist/react.js",
"commit": "gitzy",
"prepare": "is-ci || husky install"
},
Expand All @@ -64,7 +66,10 @@
"@typescript-eslint/parser": "5.3.1",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jest": "25.2.4"
"eslint-plugin-jest": "25.2.4",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-react": "7.27.0",
"eslint-plugin-react-hooks": "4.3.0"
},
"devDependencies": {
"@comparto/prettier-config": "1.2.0",
Expand Down

0 comments on commit 052ca34

Please sign in to comment.