Skip to content

Instantly share code, notes, and snippets.

@LeonardoWlopes
Last active April 16, 2024 20:06
Show Gist options
  • Save LeonardoWlopes/9119f15937d5ee8abae7414c853e6629 to your computer and use it in GitHub Desktop.
Save LeonardoWlopes/9119f15937d5ee8abae7414c853e6629 to your computer and use it in GitHub Desktop.
bx-cli-configs
{
"dependencies": {},
"devDependencies": {
"@biomejs/biome": "1.6.4"
},
"scripts": {
"lint": "biome check . --apply"
},
"fileName": "biome.json",
"content": {
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
"**/node_modules/**",
"**/dist/**",
"**/coverage/**"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "warn",
"noUnusedVariables": "warn"
},
"nursery": {
"useSortedClasses": "warn"
}
}
},
"formatter": {
"lineEnding": "lf",
"indentStyle": "tab",
"indentWidth": 4
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
},
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}
}
{
"dependencies": {},
"devDependencies": {},
"fileName": ".editorconfig",
"content": "# EditorConfig is awesome: https://EditorConfig.org\n\n# top-most EditorConfig file\nroot = true\n\n[*]\nindent_style = tab\nindent_size = 4\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = false\ninsert_final_newline = false\n\n[*.yml]\nindent_style = space\nindent_size = 2"
}
{
"dependencies": {},
"devDependencies": {
"@rocketseat/eslint-config": "^2.2.2",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^9.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^3.1.0"
},
"scripts": {
"lint": "eslint . --ext .ts,.tsx --fix"
},
"fileName": ".eslintrc.json",
"content": {
"extends": "@rocketseat/eslint-config/react",
"plugins": [
"unused-imports"
],
"rules": {
"react-hooks/exhaustive-deps": "off",
"unused-imports/no-unused-imports-ts": 1,
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"endOfLine": "lf",
"insertPragma": false,
"jsxSingleQuote": true,
"jsxBracketSameLine": false,
"printWidth": 80,
"proseWrap": "preserve",
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"useTabs": true
}
]
}
}
}
{
"dependencies": {},
"devDependencies": {
"prettier": "^3.2.5"
},
"scripts": {
"format": "prettier --write ."
},
"fileName": ".prettierrc",
"content": {
"bracketSpacing": true,
"endOfLine": "lf",
"insertPragma": false,
"jsxSingleQuote": true,
"jsxBracketSameLine": false,
"printWidth": 80,
"proseWrap": "preserve",
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"useTabs": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment