JS formatting files
This commit is contained in:
parent
a837deea64
commit
926685448e
|
@ -22,3 +22,6 @@ trim_trailing_whitespace = false
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_style = tab
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
*.min.js
|
node_modules
|
||||||
|
|
||||||
/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/**
|
|
30
.eslintrc.js
30
.eslintrc.js
|
@ -1,31 +1,3 @@
|
||||||
/** @format */
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
extends: ["plugin:@woocommerce/eslint-plugin/recommended"],
|
||||||
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
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -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' );
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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/**
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue