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
"config": { | |
"commitizen": { | |
"path": "./node_modules/cz-jira-smart-commit-validated", | |
"disableScopeLowerCase": false, | |
"disableSubjectLowerCase": false, | |
"maxHeaderWidth": 100, | |
"maxLineWidth": 100, | |
"defaultType": "", | |
"defaultScope": "", | |
"defaultSubject": "", |
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
"prettier:check": "prettier --config .prettierrc --check "application/**/*.{js}"", |
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
"lint-staged": { | |
"*/.{js, jsx, ts, tsx}": [ | |
"yarn eslint", | |
"yarn prettier --write" | |
] | |
}, |
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
// ---- Tenta resolver possíveis problemas que foram identificados quando o arquivo for salvo | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
// ---- Habilita a task do lint, veremos como executá-la depois | |
"eslint.lintTask.enable": 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
Show hidden characters
{ | |
"env": { | |
"node": true, | |
"es2020": true | |
}, | |
// ---- Pacotes de regras que estamos extendendo | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb", |
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
"nibble": "eslint-nibble ../NOME_DA_PASTA_DO_APP/", |
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
"@babel/core": "^7.8.6", | |
"@babel/eslint-parser": "^7.15.7", | |
"@babel/runtime": "^7.8.4", | |
"@react-native-community/eslint-config": "^0.0.7", | |
"@typescript-eslint/eslint-plugin": "^4.32.0", | |
"@typescript-eslint/parser": "^4.32.0", | |
"eslint": "^6.8.0", | |
"eslint-config-airbnb": "^18.2.1", | |
"eslint-config-prettier": "^8.3.0", | |
"eslint-nibble": "^7.0.0", |
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
// ---- Define o prettier como estilizador default do VSCode | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
// ---- Define que o prettier será ativado sempre que um arquivo for salvo | |
"editor.formatOnSave": 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
{ | |
"arrowParens": "always", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"jsxSingleQuote": false, | |
"quoteProps": "as-needed", | |
"singleQuote": true, | |
"semi": true, | |
"printWidth": 100, | |
"useTabs": false, |
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
yarn add prettier --dev |
NewerOlder