Skip to content

Commit

Permalink
repair various configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
binarykitchen committed Sep 12, 2024
1 parent 2430362 commit 862e35a
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 115 deletions.
22 changes: 11 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module.exports = {
parser: '@babel/eslint-parser',
plugins: [],
parser: "@babel/eslint-parser",
extends: [
'eslint:recommended',
'standard',
'standard-jsx',
'plugin:import/errors',
'plugin:import/warnings'
"eslint:recommended",
"standard",
"standard-jsx",
"plugin:import/errors",
"plugin:import/warnings",
"prettier",
],
env: {
browser: true,
es6: true
es6: true,
},
rules: {},
globals: {
Marionette: false,
Backbone: false,
jQuery: false,
VideomailClient: false,
nfRadio: false
}
}
nfRadio: false,
},
};
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.configPath": "./prettier.config.cjs",
"cSpell.words": [
"apachectl",
"binarykitchen",
"bytediff",
"corejs",
"cssnano",
"gulpfile",
"kbjohnson",
"styl",
"Videomail"
]
}
15 changes: 4 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,16 @@ function watch() {

function todo() {
return gulp
.src([
"videomail-for-ninja-forms.php",
"src/**/*.{php,js,styl}",
"gulpfile.js",
])
.src(["videomail-for-ninja-forms.php", "src/**/*.{php,js,styl}", "gulpfile.js"])
.pipe(plugins.todo())
.pipe(gulp.dest("./"));
}

function zip() {
return gulp
.src(
["index.php", "readme.txt", "videomail-for-ninja-forms.php", "target/**"],
{
base: "./",
},
)
.src(["index.php", "readme.txt", "videomail-for-ninja-forms.php", "target/**"], {
base: "./",
})
.pipe(plugins.zip("videomail-for-ninja-forms.zip"))
.pipe(gulp.dest("dist"));
}
Expand Down
82 changes: 40 additions & 42 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
"build": "gulp build",
"lint": "eslint ./src gulpfile.js",
"lint:fix": "npm --silent run lint -- --fix; exit 0",
"prettier": "prettier --check ./src gulpfile.js",
"prettier:fix": "prettier --write ./src gulpfile.js",
"prettier": "prettier --check ./src gulpfile.js .eslintrc.js",
"prettier:fix": "prettier --write ./src gulpfile.js .eslintrc.js",
"clean": "rm -rf node_modules && rm -rf target && rm -rf package-lock.json",
"release": "./env/dev/release.sh"
},
"prettier": "./prettier.config.cjs",
"babel": {
"presets": [
[
Expand Down Expand Up @@ -78,6 +79,7 @@
"browser-sync": "3.0.2",
"del": "6.1.1",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-node": "11.1.0",
Expand All @@ -99,7 +101,7 @@
"minimist": "1.2.8",
"nib": "1.2.0",
"prettier": "3.3.3",
"standard": "17.1.0",
"standard": "17.1.1",
"yargs": "17.7.2"
}
}
6 changes: 3 additions & 3 deletions .prettierrc.config.cjs → prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//@ts-check
// @ts-check

/** @type {import('prettier').Config} */
const config = {
"printWidth": 90,
printWidth: 90,
};

module.exports = config;
module.exports = config;
Loading

0 comments on commit 862e35a

Please sign in to comment.