From 438fdbe22d8c6def81bdea2588fb2b395dbb8b63 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Sun, 5 Jan 2025 13:15:45 +0100 Subject: [PATCH] add config files from old repo --- .gitignore | 7 +++++++ .markdownlintrc | 5 +++++ .prettierignore | 3 +++ .prettierrc | 12 ++++++++++++ .stylelintrc | 17 +++++++++++++++++ eslint.config.mjs | 7 +++++++ 6 files changed, 51 insertions(+) create mode 100644 .markdownlintrc create mode 100644 .prettierignore create mode 100644 .prettierrc create mode 100644 .stylelintrc create mode 100644 eslint.config.mjs diff --git a/.gitignore b/.gitignore index c2658d7..e98103e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,8 @@ +# Assorted junk dirs +cgi-bin/ +.well-known/ node_modules/ +public/ +public_dev/ +.cache/ +resources/ diff --git a/.markdownlintrc b/.markdownlintrc new file mode 100644 index 0000000..8983a69 --- /dev/null +++ b/.markdownlintrc @@ -0,0 +1,5 @@ +{ + "no-inline-html": false, + "first-line-h1": false, + "extends": "markdownlint/style/prettier" +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..60223c1 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +node_modules/ +layouts/ +* \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..46017e6 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,12 @@ +{ + "proseWrap": "always", + "overrides": [ + { + "files": "*.html", + "options": { + "printWidth": 140, + "singleAttributePerLine": true + } + } + ] +} diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..9b06a21 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,17 @@ +{ + "plugins": [ + "stylelint-scss", + "stylelint-selector-bem-pattern" + ], + "extends": [ + "stylelint-prettier/recommended", + "stylelint-config-standard-scss" + ], + "rules": { + "max-line-length": [ 80 ], + "plugin/selector-bem-pattern": { + "preset": "bem" + }, + "selector-class-pattern": null + } +} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c1b19b7 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,7 @@ +import pluginJs from "@eslint/js"; +import globals from "globals"; + +export default [ + {languageOptions: { globals: globals.browser }}, + pluginJs.configs.recommended, +];