Skip to content

Commit

Permalink
Merge branch 'update-build-env'
Browse files Browse the repository at this point in the history
  • Loading branch information
sectsect committed Oct 21, 2022
2 parents 5c615e3 + 145cd5e commit 59ec6a1
Show file tree
Hide file tree
Showing 17 changed files with 10,214 additions and 10,445 deletions.
16 changes: 5 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
Expand All @@ -18,13 +12,13 @@ insert_final_newline = true
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf

[*.md]
trim_trailing_whitespace = false
indent_size = 4

[*.scss]
[*.{scss,sass,css}]
indent_style = space
indent_size = 2

[{Movefile,.eslintrc}]
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 7 additions & 0 deletions .secretlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"rules": [
{
"id": "@secretlint/secretlint-rule-preset-recommend"
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eslint.workingDirectories": [
"src",
]
}
2 changes: 1 addition & 1 deletion assets/css/admin-options.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/admin-options.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ module.exports = api => {
corejs: 3,
},
],
'@babel/proposal-class-properties',
['@babel/plugin-proposal-class-properties', { loose: true }], // https://babeljs.io/docs/en/babel-plugin-proposal-class-properties
['@babel/plugin-proposal-private-methods', { loose: true }], // https://babeljs.io/docs/en/babel-plugin-proposal-private-methods
['@babel/plugin-proposal-private-property-in-object', { loose: true }], // https://babeljs.io/docs/en/babel-plugin-proposal-private-property-in-object
'@babel/proposal-object-rest-spread',
];

Expand Down
Loading

0 comments on commit 59ec6a1

Please sign in to comment.