Bud v5.2.0 (#2959)
* chore(deps): Bump @roots/bud to v5.2.0 * lockfile * remove `setPublicPath` * suggestions (#2961) * suggestions * unneccessary Co-authored-by: Kelly Mears <developers@tinypixel.dev>
This commit is contained in:
50
.eslintrc.js
50
.eslintrc.js
@@ -1,52 +1,4 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['eslint:recommended', 'plugin:react/recommended'],
|
||||
globals: {
|
||||
wp: true,
|
||||
},
|
||||
env: {
|
||||
node: true,
|
||||
es6: true,
|
||||
amd: true,
|
||||
browser: true,
|
||||
jquery: true,
|
||||
},
|
||||
parser: '@babel/eslint-parser',
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
experimentalObjectRestSpread: true,
|
||||
globalReturn: true,
|
||||
generators: false,
|
||||
impliedStrict: true,
|
||||
objectLiteralDuplicateProperties: false,
|
||||
jsx: true,
|
||||
},
|
||||
ecmaVersion: 2017,
|
||||
requireConfigFile: false,
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['import', 'react-hooks'],
|
||||
settings: {
|
||||
react: {
|
||||
version: 'detect',
|
||||
},
|
||||
'import/core-modules': [],
|
||||
'import/ignore': [
|
||||
'node_modules',
|
||||
'\\.(coffee|scss|css|less|hbs|svg|json)$',
|
||||
],
|
||||
},
|
||||
rules: {
|
||||
'no-console': 0,
|
||||
'comma-dangle': [
|
||||
'error',
|
||||
{
|
||||
arrays: 'always-multiline',
|
||||
objects: 'always-multiline',
|
||||
imports: 'always-multiline',
|
||||
exports: 'always-multiline',
|
||||
functions: 'ignore',
|
||||
},
|
||||
],
|
||||
},
|
||||
extends: [require.resolve('@roots/sage/eslint-config')],
|
||||
};
|
||||
|
||||
42
.stylelintrc
42
.stylelintrc
@@ -1,42 +1,6 @@
|
||||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"string-quotes": null,
|
||||
"selector-class-pattern": null,
|
||||
"declaration-colon-newline-after": null,
|
||||
"value-list-comma-newline-after": null,
|
||||
"no-empty-source": null,
|
||||
"no-descending-specificity": null,
|
||||
"at-rule-empty-line-before": null,
|
||||
"at-rule-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignoreAtRules": [
|
||||
"extend",
|
||||
"at-root",
|
||||
"debug",
|
||||
"warn",
|
||||
"error",
|
||||
"if",
|
||||
"else",
|
||||
"for",
|
||||
"each",
|
||||
"while",
|
||||
"mixin",
|
||||
"include",
|
||||
"content",
|
||||
"return",
|
||||
"tailwind",
|
||||
"apply",
|
||||
"responsive",
|
||||
"variants",
|
||||
"screen",
|
||||
"function",
|
||||
"use",
|
||||
"forward",
|
||||
"layer"
|
||||
"extends": [
|
||||
"@roots/sage/stylelint-config",
|
||||
"@roots/bud-tailwindcss/stylelint-config"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/**
|
||||
* @typedef {import('@roots/bud').Bud} Bud
|
||||
* @typedef {import('@roots/bud').Bud} bud
|
||||
*
|
||||
* @param {Bud} app
|
||||
* @param {bud} app
|
||||
*/
|
||||
|
||||
module.exports = (app) =>
|
||||
app
|
||||
/**
|
||||
@@ -37,9 +36,4 @@ module.exports = (app) =>
|
||||
*
|
||||
* This is your local dev server.
|
||||
*/
|
||||
.proxy('http://example.test')
|
||||
|
||||
/**
|
||||
* Public path of application assets
|
||||
*/
|
||||
.setPublicPath('/app/themes/sage/public/');
|
||||
.proxy('http://example.test');
|
||||
|
||||
15
jsconfig.json
Normal file
15
jsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"baseUrl": ".",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@scripts/*": ["./resources/scripts/*"],
|
||||
"@styles/*": ["./resources/styles/*"]
|
||||
},
|
||||
"target": "es5"
|
||||
},
|
||||
"exclude": ["./public"]
|
||||
}
|
||||
25
package.json
25
package.json
@@ -22,23 +22,12 @@
|
||||
"test": "npm run lint"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.16.5",
|
||||
"@roots/bud": "^5.1.0",
|
||||
"@roots/bud-eslint": "^5.1.0",
|
||||
"@roots/bud-postcss": "^5.1.0",
|
||||
"@roots/bud-prettier": "^5.1.0",
|
||||
"@roots/bud-stylelint": "^5.1.0",
|
||||
"@roots/bud-tailwindcss": "^5.1.0",
|
||||
"@roots/sage": "^5.1.0",
|
||||
"@wordpress/browserslist-config": "4.1.0",
|
||||
"eslint": "8.6.0",
|
||||
"postcss": "8.4.5",
|
||||
"postcss-import": "14.0.2",
|
||||
"postcss-nested": "5.0.6",
|
||||
"postcss-preset-env": "7.1.0",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"tailwindcss": "3.0.8",
|
||||
"prettier": "2.5.1"
|
||||
"@roots/bud": "^5.2.0",
|
||||
"@roots/bud-eslint": "^5.2.0",
|
||||
"@roots/bud-postcss": "^5.2.0",
|
||||
"@roots/bud-prettier": "^5.2.0",
|
||||
"@roots/bud-stylelint": "^5.2.0",
|
||||
"@roots/bud-tailwindcss": "^5.2.0",
|
||||
"@roots/sage": "^5.2.0"
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./resources",
|
||||
"paths": {
|
||||
"@scripts/*": ["scripts/*"],
|
||||
"@styles/*": ["styles/*"]
|
||||
},
|
||||
"outDir": "./public",
|
||||
"target": "es5",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"strict": false,
|
||||
"checkJs": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": ["resources/**/*"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
Reference in New Issue
Block a user