Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": ["last 2 versions", "ie >= 11"]
}
}
],
"@babel/preset-env",
[
"@babel/preset-react",
{
Expand All @@ -16,21 +9,12 @@
]
],
"plugins": [
"@babel/plugin-syntax-jsx",
[
"@wordpress/babel-plugin-makepot",
{
"output": "languages/formidable-js.pot"
}
]
],
"env": {
"test": {
"plugins": [
"@babel/plugin-transform-react-jsx",
"babel-plugin-styled-components"
]
}
},
"comments": true
}
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- name: Install dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --legacy-peer-deps --include=dev
run: npm ci --legacy-peer-deps --include=dev --omit=optional

# Serve the formidableforms.com APIs from fixtures instead of calling
# them on every run. The cache key is the UTC date, so the fixtures are
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Install dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --include=dev --legacy-peer-deps
run: npm ci --include=dev --omit=optional --legacy-peer-deps

- name: Run JS unit tests
run: node --test tests/js/*.test.mjs
2 changes: 1 addition & 1 deletion .github/workflows/jscs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --include=dev --legacy-peer-deps
run: npm ci --include=dev --omit=optional --legacy-peer-deps

- name: Run ESLint
run: ./node_modules/.bin/eslint .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stylelint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install dependencies
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci --include=dev --legacy-peer-deps
run: npm ci --include=dev --omit=optional --legacy-peer-deps

- name: Set up WP environment
run: npm run env start
Expand Down
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default [
sourceType: 'module',
babelOptions: {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['@babel/plugin-syntax-jsx'],
},
ecmaFeatures: {
jsx: true,
Expand Down Expand Up @@ -114,6 +113,8 @@ export default [
},
react: {
pragma: 'wp',
// React is a WordPress global (wp.element), not an npm dependency, so tell the plugin which version to lint for.
version: '16.14',
},
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion js/addons-page.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions js/form-templates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable-color-picker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable-settings-components.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable-web-components.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions js/formidable_admin.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/formidable_blocks.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable_dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable_overlay.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading