Skip to content

Commit

Permalink
Merge pull request #5 from TYPO3incubator/surfcamp-team-jacuzzi-fil
Browse files Browse the repository at this point in the history
[TASK] Add typo3/coding-standards and .editorconfig
  • Loading branch information
o-ba authored Apr 11, 2024
2 parents 6749387 + 5913e71 commit df94f4e
Show file tree
Hide file tree
Showing 13 changed files with 760 additions and 26 deletions.
64 changes: 64 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# TS/JS-Files
[*.{ts,js,mjs}]
indent_size = 2

# JSON-Files
[*.json]
indent_style = tab

# ReST-Files
[*.{rst,rst.txt}]
indent_size = 4
max_line_length = 80

# Markdown-Files
[*.md]
max_line_length = 80

# YAML-Files
[*.{yaml,yml}]
indent_size = 2

# NEON-Files
[*.neon]
indent_size = 2
indent_style = tab

# stylelint
[.stylelintrc]
indent_size = 2

# package.json
[package.json]
indent_size = 2

# TypoScript
[*.{typoscript,tsconfig}]
indent_size = 2

# XLF-Files
[*.xlf]
indent_style = tab

# SQL-Files
[*.sql]
indent_style = tab
indent_size = 2

# .htaccess
[{_.htaccess,.htaccess}]
indent_style = tab
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
.DS_Store
/config/sites
/node_modules
.php-cs-fixer.cache
5 changes: 5 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$config = \TYPO3\CodingStandards\CsFixerConfig::create();
$config->getFinder()->in(__DIR__ . '/local_packages');
return $config;
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,19 @@
"vlucas/phpdotenv": "^5.6"
},
"require-dev": {
"roave/security-advisories": "dev-latest"
"roave/security-advisories": "dev-latest",
"typo3/coding-standards": "^0.8"
},
"extra": {
"patches": {
"typo3/cms-core": {
"cc410ef": "composer_patches/typo3-cms-core-review-cc410ef.diff"
}
}
},
"scripts": {
"cs": [
"@php bin/php-cs-fixer fix --dry-run --diff --config=./.php-cs-fixer.php local_packages/"
]
}
}
Loading

0 comments on commit df94f4e

Please sign in to comment.