Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive image/video fixes #68

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .eslintrc.json

This file was deleted.

57 changes: 57 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["**/coverage", "**/templates"],
},
...compat.extends("eslint:recommended", "plugin:prettier/recommended", "prettier"),
{
plugins: {
prettier,
},
languageOptions: {
globals: {
...Object.fromEntries(Object.entries(globals.browser).map(([key]) => [key, "off"])),
...Object.fromEntries(Object.entries(globals.commonjs).map(([key]) => [key, "off"])),
...globals.node,
},
ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"babel/no-invalid-this": 0,
"import/no-anonymous-default-export": 0,
"import/no-unresolved": [
"error",
{
ignore: ["^jquery"],
},
],
"no-alert": 0,
"no-console": 0,
"no-new": 0,
"node/shebang": 0,
"prettier/prettier": ["error"],
"sort-imports": [
"error",
{
ignoreDeclarationSort: true,
},
],
},
},
];
54 changes: 54 additions & 0 deletions generators/app/templates/common/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["**/node_modules/", "**/bower_components/", "static/js/vendor/**/*.js", "**/dist/"],
},
...compat.extends("eslint:recommended", "plugin:prettier/recommended", "prettier"),
{
plugins: {
prettier,
},
languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.node,
document: true,
frontend_rest_object: true,
window: true,
wp: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"babel/no-invalid-this": 0,
"import/no-anonymous-default-export": 0,
"no-alert": 0,
"no-console": 0,
"no-new": 0,
"node/shebang": 0,
"prettier/prettier": ["error"],
"sort-imports": [
"error",
{
ignoreDeclarationSort: true,
},
],
},
},
];
52 changes: 23 additions & 29 deletions generators/app/templates/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,46 +30,40 @@
"fontfaceobserver-es": "^3.3.3",
"gsap": "^3.12.5",
"instant.page": "^5.2.0",
"slim-select": "^2.8.1",
"swiper": "^11.0.6",
"vanilla-lazyload": "^17.8.8"
"slim-select": "^2.8.2",
"swiper": "^11.1.4",
"vanilla-lazyload": "^19.1.3"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/core": "^7.24.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-object-rest-spread": "^7.23.4",
"@babel/preset-env": "^7.23.9",
<%_ if (react) { _%>
"@babel/preset-react": "^7.23.3",
<%_ } _%>
"@babel/plugin-transform-class-properties": "^7.24.7",
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.4.0",
"@namics/stylelint-bem": "^10.0.0",
"ajv": "^8.16.0",
"babel-loader": "^9.1.3",
"browser-sync": "^3.0.2",
"browser-sync-v3-webpack-plugin": "^0.1.0",
"css-loader": "^6.10.0",
"eslint": "^8.56.0",
"css-loader": "^7.1.2",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
<%_ if (react) { _%>
"eslint-plugin-react": "^7.33.2",
<%_ } _%>
"globals": "^15.4.0",
"husky": "^9.0.11",
"mini-css-extract-plugin": "^2.8.0",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
<%_ if (react) { _%>
"react": "^18.2.0",
"react-dom": "^18.2.0",
<%_ } _%>
"sass": "^1.71.1",
"sass-loader": "^14.1.1",
"style-loader": "^3.3.4",
"stylelint": "^16.2.1",
"stylelint-config-standard-scss": "^13.0.0",
"mini-css-extract-plugin": "^2.9.0",
"postcss": "^8.4.38",
"prettier": "^3.3.2",
"sass": "^1.77.5",
"sass-loader": "^14.2.1",
"style-loader": "^4.0.0",
"stylelint": "^16.6.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.1.0",
"webpack": "^5.90.3",
"stylelint-scss": "^6.3.1",
"webpack": "^5.92.0",
"webpack-cli": "^5.1.4",
"webpack-remove-empty-scripts": "^1.0.4"
},
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/dotfiles/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ insert_final_newline = true
[*.{json,yml}]
indent_style = space
indent_size = 2
insert_final_newline = true
insert_final_newline = true
4 changes: 0 additions & 4 deletions generators/app/templates/dotfiles/.eslintignore

This file was deleted.

59 changes: 0 additions & 59 deletions generators/app/templates/dotfiles/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion generators/app/templates/dotfiles/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ Thumbs.db
.sass-cache/*
node_modules/*
bower_components/*
/node_modules/*
/node_modules/*
2 changes: 1 addition & 1 deletion generators/app/templates/dotfiles/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ bower_components/
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Thumbs.db
4 changes: 2 additions & 2 deletions generators/app/templates/dotfiles/.stylelintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dist/
node_modules/
bower_components/
src/styles/settings/**/*.scss
src/styles/tools/**/*.scss
static/scss/settings/**/*.scss
static/scss/tools/**/*.scss
Loading