Skip to content

Commit 41eabdc

Browse files
committed
Switch to single quotes for JS
1 parent 3d8e6b1 commit 41eabdc

33 files changed

+1415
-1408
lines changed

.eslintrc.cjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
module.exports = {
22
root: true,
33
parserOptions: {
4-
ecmaVersion: "latest",
4+
ecmaVersion: 'latest',
55
},
6-
extends: ["eslint:recommended", "plugin:editorconfig/noconflict", "prettier"],
7-
plugins: ["editorconfig"],
8-
ignorePatterns: ["*.cjs"],
6+
extends: ['eslint:recommended', 'plugin:editorconfig/noconflict', 'prettier'],
7+
plugins: ['editorconfig'],
8+
ignorePatterns: ['*.cjs'],
99
env: {
1010
browser: true,
1111
es2021: true,
1212
},
1313
globals: {
14-
$: "readonly",
15-
jQuery: "readonly",
16-
App: "readonly",
14+
$: 'readonly',
15+
jQuery: 'readonly',
16+
App: 'readonly',
1717
},
1818
rules: {
19-
"no-unused-vars": "off",
20-
"no-undef": "off",
21-
"no-redeclare": "off",
19+
'no-unused-vars': 'off',
20+
'no-undef': 'off',
21+
'no-redeclare': 'off',
2222
},
2323
};

.lintstagedrc.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
// Run Stylelint on CSS files
3-
"*.css": "stylelint --fix",
3+
'*.css': 'stylelint --fix',
44
// Run ESLint on TS, TSX, JS, JSX files
5-
"*.{ts,js}?(x)": "eslint --fix",
5+
'*.{ts,js}?(x)': 'eslint --fix',
66
// Run Prettier everywhere
7-
"*": "prettier --write --ignore-unknown",
7+
'*': 'prettier --write --ignore-unknown',
88
};

.prettierrc.cjs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
module.exports = {
22
// Plugins
33
plugins: [
4-
"@prettier/plugin-php",
5-
"prettier-plugin-nginx",
6-
"prettier-plugin-sh",
7-
"prettier-plugin-sql",
4+
'@prettier/plugin-php',
5+
'prettier-plugin-nginx',
6+
'prettier-plugin-sh',
7+
'prettier-plugin-sql',
88
],
9-
pluginSearchDirs: ["."],
9+
pluginSearchDirs: ['.'],
1010
// PHP Settings
11-
phpVersion: "8.1",
12-
braceStyle: "1tbs",
11+
phpVersion: '8.1',
12+
braceStyle: '1tbs',
1313
// Overrides for some files
1414
overrides: [
15+
// JavaScript files
16+
{
17+
files: ['*.{js,cjs}'],
18+
options: {
19+
singleQuote: true,
20+
},
21+
},
1522
// Hestia CLI
1623
{
17-
files: ["bin/v-*", "src/deb/*/{postinst,preinst,hestia,postrm}", "install/common/api/*"],
24+
files: ['bin/v-*', 'src/deb/*/{postinst,preinst,hestia,postrm}', 'install/common/api/*'],
1825
options: {
19-
parser: "sh",
26+
parser: 'sh',
2027
},
2128
},
2229
// Nginx config
2330
{
24-
files: ["**/nginx/*.inc", "**/nginx/*.conf"],
31+
files: ['**/nginx/*.inc', '**/nginx/*.conf'],
2532
options: {
26-
parser: "nginx",
33+
parser: 'nginx',
2734
},
2835
},
2936
],

.stylelintrc.cjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
2-
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
2+
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
33
rules: {
4-
"selector-class-pattern": null,
5-
"no-descending-specificity": null,
6-
"block-no-empty": null,
4+
'selector-class-pattern': null,
5+
'no-descending-specificity': null,
6+
'block-no-empty': null,
77

8-
"max-line-length": null,
9-
"declaration-block-no-shorthand-property-overrides": null,
10-
"selector-id-pattern": null,
8+
'max-line-length': null,
9+
'declaration-block-no-shorthand-property-overrides': null,
10+
'selector-id-pattern': null,
1111
},
1212
};

postcss.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
plugins: [
3-
require("postcss-import"),
4-
require("postcss-size"),
5-
require("cssnano"),
6-
require("postcss-preset-env")({
3+
require('postcss-import'),
4+
require('postcss-size'),
5+
require('cssnano'),
6+
require('postcss-preset-env')({
77
autoprefixer: {
8-
flexbox: "no-2009",
8+
flexbox: 'no-2009',
99
},
1010
stage: 1,
1111
}),

0 commit comments

Comments
 (0)