-
-
Save brunosabot/30ba8f8fc2ff8bf1a75d8f973b300578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"extends": ["react-app", "airbnb", "prettier"], | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"plugins": ["react-hooks"], | |
"rules": { | |
"react-hooks/rules-of-hooks": "error", | |
"react-hooks/exhaustive-deps": "warn", | |
"jsx-a11y/label-has-for": [ | |
2, | |
{ | |
"components": ["label"], | |
"allowChildren": true | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"stylelint-config-recommended", | |
"stylelint-prettier/recommended", | |
"stylelint-config-css-modules" | |
], | |
"plugins": ["stylelint-prettier", "stylelint-order"], | |
"rules": { | |
"prettier/prettier": true, | |
"order/properties-alphabetical-order": true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// ... | |
"scripts": { | |
"build": "react-scripts build", | |
"eject": "react-scripts eject", | |
"lint": "eslint --ext .js,.jsx .", | |
"start": "react-scripts start", | |
"test:lint-staged": "cross-env CI=true react-scripts test --findRelatedTests", | |
"test": "react-scripts test" | |
}, | |
"lint-staged": { | |
"*.css": [ | |
"prettier --write", | |
"stylelint --fix", | |
"git add" | |
], | |
"*.{js,jsx}": [ | |
"yarn run test:lint-staged", | |
"eslint --ext .js,.jsx", | |
"prettier --write", | |
"git add" | |
], | |
"*.{json,md}": [ | |
"prettier --write", | |
"git add" | |
] | |
}, | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 100 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment