mirror of
https://github.com/woocommerce/woocommerce.git
synced 2025-08-18 01:58:54 +08:00
JS formatting files
This commit is contained in:
parent
a837deea64
commit
926685448e
7 changed files with 4234 additions and 50 deletions
|
@ -22,3 +22,6 @@ trim_trailing_whitespace = false
|
|||
trim_trailing_whitespace = false
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
indent_style = tab
|
||||
|
|
|
@ -1,21 +1 @@
|
|||
*.min.js
|
||||
|
||||
/assets/js/accounting/**
|
||||
/assets/js/flexslider/**
|
||||
/assets/js/jquery-blockui/**
|
||||
/assets/js/jquery-cookie/**
|
||||
/assets/js/jquery-flot/**
|
||||
/assets/js/jquery-payment/**
|
||||
/assets/js/jquery-qrcode/**
|
||||
/assets/js/jquery-serializejson/**
|
||||
/assets/js/jquery-tiptip/**
|
||||
/assets/js/jquery-ui-touch-punch/**
|
||||
/assets/js/js-cookie/**
|
||||
/assets/js/photoswipe/**
|
||||
/assets/js/prettyPhoto/**
|
||||
/assets/js/round/**
|
||||
/assets/js/select2/**
|
||||
/assets/js/selectWoo/**
|
||||
/assets/js/stupidtable/**
|
||||
/assets/js/zeroclipboard/**
|
||||
/assets/js/zoom/**
|
||||
node_modules
|
30
.eslintrc.js
30
.eslintrc.js
|
@ -1,31 +1,3 @@
|
|||
/** @format */
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true
|
||||
},
|
||||
globals: {
|
||||
wp: true,
|
||||
wpApiSettings: true,
|
||||
wcSettings: true,
|
||||
es6: true
|
||||
},
|
||||
rules: {
|
||||
camelcase: 0,
|
||||
indent: 0,
|
||||
'max-len': [ 2, { 'code': 140 } ],
|
||||
'no-console': 1
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
parserOptions: {
|
||||
ecmaVersion: 8,
|
||||
ecmaFeatures: {
|
||||
modules: true,
|
||||
experimentalObjectRestSpread: true,
|
||||
jsx: true
|
||||
}
|
||||
},
|
||||
extends: ["plugin:@woocommerce/eslint-plugin/recommended"],
|
||||
};
|
||||
|
|
3
.prettierrc.js
Normal file
3
.prettierrc.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Import the default config file and expose it in the project root.
|
||||
// Useful for editor integrations.
|
||||
module.exports = require( '@wordpress/prettier-config' );
|
23
package.json
Normal file
23
package.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "woocommerce-monorepo",
|
||||
"title": "WooCommerce Monorepo",
|
||||
"description": "Monorepo for the WooCommerce ecosystem",
|
||||
"homepage": "https://woocommerce.com/",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/woocommerce/woocommerce.git"
|
||||
},
|
||||
"author": "Automattic",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"bugs": {
|
||||
"url": "https://github.com/woocommerce/woocommerce/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@woocommerce/eslint-plugin": "^1.2.0",
|
||||
"@wordpress/prettier-config": "^1.0.5",
|
||||
"jest": "^27.0.6",
|
||||
"prettier": "npm:wp-prettier@2.2.1-beta-1",
|
||||
"typescript": "4.2.4"
|
||||
}
|
||||
}
|
21
plugins/woocommerce/.eslintignore
Normal file
21
plugins/woocommerce/.eslintignore
Normal file
|
@ -0,0 +1,21 @@
|
|||
*.min.js
|
||||
|
||||
/assets/js/accounting/**
|
||||
/assets/js/flexslider/**
|
||||
/assets/js/jquery-blockui/**
|
||||
/assets/js/jquery-cookie/**
|
||||
/assets/js/jquery-flot/**
|
||||
/assets/js/jquery-payment/**
|
||||
/assets/js/jquery-qrcode/**
|
||||
/assets/js/jquery-serializejson/**
|
||||
/assets/js/jquery-tiptip/**
|
||||
/assets/js/jquery-ui-touch-punch/**
|
||||
/assets/js/js-cookie/**
|
||||
/assets/js/photoswipe/**
|
||||
/assets/js/prettyPhoto/**
|
||||
/assets/js/round/**
|
||||
/assets/js/select2/**
|
||||
/assets/js/selectWoo/**
|
||||
/assets/js/stupidtable/**
|
||||
/assets/js/zeroclipboard/**
|
||||
/assets/js/zoom/**
|
4182
pnpm-lock.yaml
generated
Normal file
4182
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue