aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.prettierrc.js31
-rw-r--r--.stylelintrc.json25
2 files changed, 54 insertions, 2 deletions
diff --git a/.prettierrc.js b/.prettierrc.js
index f4d6253..6f6bdc0 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -1,3 +1,32 @@
module.exports = {
-
+ printWidth: 80,
+ tabWidth: 2,
+ useTabs: false,
+ singleQuote: true,
+ quoteProps: 'as-needed',
+ jsxSingleQuote: true,
+ trailingComma: 'es5',
+ bracketSpacing: true,
+ jsxBracketSameLine: false,
+ arrowParens: 'always',
+ requirePragma: false,
+ insertPragma: false,
+ proseWrap: 'preserve',
+ htmlWhitespaceSensitivity: 'css',
+ vueIndentScriptAndStyle: true,
+ endOfLine: 'lf',
+ overrides: [
+ {
+ files: ['*.css', '*.scss'],
+ options: {
+ singleQuote: false,
+ },
+ },
+ {
+ files: ['*.txt'],
+ options: {
+ endOfLine: 'crlf',
+ },
+ },
+ ],
};
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 92b9efd..ea0985a 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,3 +1,26 @@
{
- "extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"]
+ "extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"],
+ "rules": {
+ "at-rule-empty-line-before": [
+ "always",
+ {
+ "except": ["blockless-after-blockless"],
+ "ignore": ["after-comment", "first-nested"],
+ "ignoreAtRules": ["else", "if"]
+ }
+ ],
+ "block-closing-brace-newline-after": [
+ "always",
+ { "ignoreAtRules": ["if", "else"] }
+ ],
+ "max-nesting-depth": [
+ 3,
+ {
+ "ignore": ["blockless-at-rules", "pseudo-classes"],
+ "ignoreAtRules": ["media", "supports", "include"]
+ }
+ ],
+ "string-quotes": "double",
+ "scss/dollar-variable-pattern": "^([a-z][a-z0-9]*)((-|_)[a-z0-9]+)*$"
+ }
}