Estimated completion time: 20 minutes
What You’ll Learn
In this guide, you’ll learn how to:- Use SQLFluff to lint and format SQL files
- Utilize Prettier to format and debug your YAML files
- Customize settings for both tools to match your team’s standards
1. SQLFluff
SQLFluff is an integrated linting tool in Paradime that helps maintain consistent, high-quality SQL code. The pre-configured template is for Snowflake and dbt, setting basic rules for SQL formatting such as line length, indentation, aliasing, and capitalization. It provides a foundation for consistent SQL styling that can be easily customized to fit specific project needs.
Key Features:
- Integrated Linting: Automatically check SQL code against standard or custom rules.
- Pre-configured for dbt™: Comes ready to use with basic rules tailored for dbt™ projects.
- Real-time Formatting: Use the ‘Prettier’ button in Paradime’s IDE for instant code corrections.
- Select a .sql file within your dbt™ project.
- Click the
Prettierbutton in the commands panel to automatically format your .yml file.

- Optional: Customize your SQL formatting by creating a .sqlfluff file in your dbt™ root directory (this is in the same directory where your dbt_project.yml lives).

Example SQLFluff Formatting
- Before Formatting
- After Formatting with SQLFluff:
2. Prettier
Prettier is an integrated code formatter in Paradime that helps maintain consistent, error-free YAML files in your dbt™ project. Prettier comes pre-installed in your project and uses default configurations provided by the Prettier library, which can be easily customized to fit specific YAML preferences.
Key Features:
- Automatic Formatting: Formats YAML files for improved readability and code quality.
- Error Detection: Highlights severe formatting errors and assists in debugging.
- Customization: Allows custom configurations through a .prettierrc file.
- Select a .yml file within your dbt™ project.
- Click the
Prettierbutton in the commands panel to automatically format your .yml file.

- If more severe errors are detected, click the
Prettierbutton in the toolbar to debug.

- Optional: Customize your YAML formatting by creating a .prettierrc file in your dbt™ root directory (this is in the same directory where your dbt_project.yml lives).

Example YAML Formatting
- Before formatting
- After Applying Prettier
Related Documentation