
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@eduzz/eslint-config
Advanced tools
Configuração padrão do eslint para os projetos da Eduzz.
yarn add --dev @eduzz/eslint-config
eslint.config.js
const { ignores, configs } = require('@eduzz/eslint-config'); // Javascript / Typescript / Node
const { ignores, configs } = require('@eduzz/eslint-config/react'); // React
const { ignores, configs } = require('@eduzz/eslint-config/react-native'); // React Native
/** @type import('eslint').Linter.Config[] */
module.exports = [...configs, { ignores: ignores() }];
.prettierrc.js
module.exports = {
...require('@eduzz/eslint-config/.prettierrc')
};
Por padrão todos os arquivos do .gitignore
já são removidos, caso queira adicionar mais:
/** @type import('eslint').Linter.Config[] */
module.exports = [...configs, { ignores: ignores('**/ignore/**.js', 'ignore.js') }];
Caso queira adicionar/remover alguma rule basta adicionar rules
na última config:
/** @type import('eslint').Linter.Config[] */
module.exports = [
...configs,
{
ignores: ignores(),
rules: {
'@typescript-eslint/no-unused-vars': ['off']
}
}
];
Adicione a extensão do ESLint. SUGERIMOS DESISTALAR OU DESATIVAR A EXTENSÃO DO PRETTIER POIS O ESLINT QUE APLICARÁ O PRETTIER.
Crie/Adicione no .vscode/settings.json (não na suas configurações, pois assim ficará no projeto e o time já terá acesso):
{
//... suas configurações
"editor.codeActionsOnSave": {
"source.organizeImports": false,
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.tabSize": 2
}
FAQs
Eduzz Eslint Config
We found that @eduzz/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.