mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-28 00:34:34 +08:00
updated react app and API backend
1. Added API backend for settings 2. Added React components for the settings page 3. Added JS lint using @wordpress/scripts 4. Lint fixes for PHP
This commit is contained in:
parent
38067e490a
commit
e80316be89
36 changed files with 45313 additions and 1736 deletions
22
.eslintrc.js
Normal file
22
.eslintrc.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const defaultConfig = require( '@wordpress/scripts/config/.eslintrc.js' );
|
||||
|
||||
module.exports = {
|
||||
...defaultConfig,
|
||||
rules: {
|
||||
...defaultConfig.rules,
|
||||
// Custom rules for our project
|
||||
'react/react-in-jsx-scope': 'off', // Not needed in React 17+
|
||||
'import/no-unresolved': 'off', // Vite handles module resolution
|
||||
'@wordpress/no-unused-vars-before-return': 'off', // Allow modern patterns
|
||||
'jsdoc/require-param-type': 'off', // Too verbose for React props
|
||||
'jsdoc/require-param': 'off', // Too verbose for React props
|
||||
'no-alert': 'off', // Allow confirm dialogs for UX
|
||||
'jsx-a11y/label-has-associated-control': 'off', // Our labels are correctly associated
|
||||
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'off', // Allow nav with tablist role
|
||||
},
|
||||
globals: {
|
||||
...defaultConfig.globals,
|
||||
// Additional globals for our project
|
||||
helixData: 'readonly',
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue