mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-28 23:57:47 +00:00
chore: add prettier and format all files
- Install prettier ^3.6.2 - Add .prettierrc with project formatting rules - Add .prettierignore to exclude generated files and dependencies - Add npm scripts: format and format:check - Format all files with prettier
This commit is contained in:
@@ -30,20 +30,20 @@ module.exports = grammar(bashGrammar, {
|
||||
[$.pipeline],
|
||||
// 2 essential ShellSpec conflicts
|
||||
[$.command_name, $.shellspec_data_block],
|
||||
[$.shellspec_hook_block]
|
||||
[$.shellspec_hook_block],
|
||||
],
|
||||
rules: {
|
||||
// 8 ShellSpec rule extensions
|
||||
shellspec_describe_block, // Describe/fDescribe/xDescribe
|
||||
shellspec_context_block, // Context/ExampleGroup variants
|
||||
shellspec_it_block, // It/Example/Specify variants
|
||||
shellspec_hook_block, // BeforeEach/AfterEach/etc blocks
|
||||
shellspec_utility_block, // Parameters/Skip/Pending/Todo
|
||||
shellspec_data_block, // Data blocks with statements/arguments
|
||||
shellspec_hook_statement, // Before/After statements
|
||||
shellspec_directive_statement // Include/Skip if
|
||||
}
|
||||
})
|
||||
shellspec_describe_block, // Describe/fDescribe/xDescribe
|
||||
shellspec_context_block, // Context/ExampleGroup variants
|
||||
shellspec_it_block, // It/Example/Specify variants
|
||||
shellspec_hook_block, // BeforeEach/AfterEach/etc blocks
|
||||
shellspec_utility_block, // Parameters/Skip/Pending/Todo
|
||||
shellspec_data_block, // Data blocks with statements/arguments
|
||||
shellspec_hook_statement, // Before/After statements
|
||||
shellspec_directive_statement, // Include/Skip if
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
### Supported ShellSpec Constructs
|
||||
|
||||
@@ -139,7 +139,7 @@ check-ci:
|
||||
|
||||
### 2. Release Workflow (`release.yml`)
|
||||
|
||||
- **Triggers**: tags (v*.*.*), manual dispatch
|
||||
- **Triggers**: tags (v*.*.\*), manual dispatch
|
||||
- **Jobs**: validate, check-ci, security, release
|
||||
- **Purpose**: Streamlined release process with CI dependency
|
||||
|
||||
|
||||
Reference in New Issue
Block a user