Skip to content

Commit 3830155

Browse files
committed
Update dependencies, webpack, eslint, stylelint, and sass files
1 parent 458b739 commit 3830155

12 files changed

Lines changed: 12879 additions & 18852 deletions

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

.stylelintrc

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
{
2+
"extends": "stylelint-config-standard-scss",
23
"ignoreFiles": "",
34
"rules": {
45
"at-rule-empty-line-before": null,
56
"block-no-empty": true,
6-
"color-hex-case": "lower",
77
"color-no-invalid-hex": true,
88
"comment-no-empty": true,
99
"declaration-block-no-shorthand-property-overrides": true,
10-
"declaration-colon-space-before": "never",
1110
"font-family-name-quotes": "always-where-recommended",
12-
"font-weight-notation": "numeric",
1311
"function-url-quotes": "always",
14-
"indentation": "tab",
15-
"max-empty-lines": 1,
16-
"no-missing-end-of-source-newline": true,
17-
"number-leading-zero": "always",
18-
"property-case": "lower",
1912
"rule-empty-line-before": null,
20-
"selector-combinator-space-after": "always",
21-
"selector-list-comma-newline-after": null,
22-
"selector-pseudo-element-case": "lower",
2313
"selector-pseudo-element-colon-notation": "double",
24-
"unit-case": "lower",
2514
"unit-no-unknown": true
2615
}
2716
}

eslint.config.mjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { FlatCompat } from "@eslint/eslintrc";
2+
import { fileURLToPath } from "url";
3+
import path from "path";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = path.dirname(__filename);
7+
8+
const compat = new FlatCompat({ baseDirectory: __dirname });
9+
10+
export default [
11+
{
12+
ignores: ["**/*.min.js", "**/node_modules/**", "**/vendor/**", "**/dist/**"],
13+
},
14+
...compat.extends("wordpress"),
15+
{
16+
languageOptions: {
17+
ecmaVersion: 2015,
18+
sourceType: "module",
19+
globals: {
20+
window: "readonly",
21+
document: "readonly",
22+
navigator: "readonly",
23+
jQuery: "readonly",
24+
$: "readonly",
25+
module: "readonly",
26+
require: "readonly",
27+
process: "readonly",
28+
},
29+
},
30+
rules: {
31+
"camelcase": [1],
32+
"space-in-parens": [1, "always"],
33+
"no-trailing-spaces": [1],
34+
"spaced-comment": [0],
35+
"padded-blocks": [0],
36+
"prefer-template": [0],
37+
"max-len": [0],
38+
"no-else-return": [0],
39+
"func-names": [0],
40+
"object-shorthand": [0],
41+
"indent": ["error", "tab"],
42+
"space-before-function-paren": 0,
43+
"no-tabs": 0,
44+
"prefer-destructuring": 0,
45+
"no-undef": 0,
46+
"no-param-reassign": 0,
47+
},
48+
},
49+
];

0 commit comments

Comments
 (0)