diff --git a/.dir-locals.el b/.dir-locals.el index 4d2c06c..cb92733 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,11 +1,7 @@ ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") -((js-json-mode . ((js-indent-level . 2) - (eval . (prettier-js-mode 1)))) - (typescript-mode . ((typescript-indent-level . 2) - (eval . (prettier-js-mode 1)) - (prettier-js-args . ("--single-quote" "--jsx-single-quote")))) - (typescript-ts-mode . ((typescript-indent-level . 2) - (eval . (prettier-js-mode 1)) - (prettier-js-args . ("--single-quote" "--jsx-single-quote"))))) +((css-mode . ((eval . (prettier-js-mode 1)))) + (js-json-mode . ((eval . (prettier-js-mode 1)))) + (typescript-mode . ((eval . (prettier-js-mode 1)))) + (typescript-ts-mode . ((eval . (prettier-js-mode 1))))) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..99af6f7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + +[*.{json,ts,css}] +indent_style = space +indent_size = 2 + +[*.ts] +quote_type = single \ No newline at end of file