Skip to content

Commit

Permalink
Add editor config and reformat js and style files
Browse files Browse the repository at this point in the history
For better readability and easier further refactoring

Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Jun 10, 2024
1 parent 425317f commit 7b8d228
Show file tree
Hide file tree
Showing 13 changed files with 751 additions and 1,125 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

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

# Unix-style newlines with a newline ending every file
[{*.yml,*.yaml,*.json}]
indent_size = 2
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed
- Use correct interface for shop id calculation
- Reformat js and styles for better readability

## [1.0.0] - 2024-03-12

Expand Down
2 changes: 1 addition & 1 deletion assets/out/src/js/base.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/out/src/js/overlay.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/grunt/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
options: {
compress: true,
plugins: [
new ( require( 'less-plugin-autoprefix') )( { browsers: [ "last 2 versions" ] } )
new (require('less-plugin-autoprefix'))({browsers: ["last 2 versions"]})
]
},

Expand Down
4 changes: 2 additions & 2 deletions build/grunt/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
module.exports = {

development: {
files: [ "build/**/*.js", "build/**/*.less", "build/**/*.scss" ],
tasks: [ "development" ]
files: ["build/**/*.js", "build/**/*.less", "build/**/*.scss"],
tasks: ["development"]
}

};
26 changes: 13 additions & 13 deletions build/js/.jshintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"asi" : true,
"browser" : true,
"eqeqeq" : false,
"eqnull" : true,
"es3" : true,
"expr" : true,
"jquery" : true,
"latedef" : true,
"laxbreak" : true,
"nonbsp" : true,
"strict" : true,
"unused" : true
}
"asi": true,
"browser": true,
"eqeqeq": false,
"eqnull": true,
"es3": true,
"expr": true,
"jquery": true,
"latedef": true,
"laxbreak": true,
"nonbsp": true,
"strict": true,
"unused": true
}
Loading

0 comments on commit 7b8d228

Please sign in to comment.