Skip to content

Commit

Permalink
Abolish "prefer-template" rule from ESLint config
Browse files Browse the repository at this point in the history
I proposed an awkward-sounding enhancement proposal to the ESLint team,
which the diatribe there expresses it best: eslint/eslint#11034

Basically, they recommended I try blending two existing rules together,
leaving it up to me to figure out how the hell that was done. My take on
these events? Boil the offending lint-rules for now, hack together tools
by me - for me - for working with my selfish-little, frameworks-hating,
arsenal of a "Fuck you I'll do it myself." mentality.
  • Loading branch information
Alhadis committed Nov 13, 2018
1 parent 2e50360 commit 7bd2886
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
34 changes: 28 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,35 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[*.{md,php}]
trim_trailing_whitespace = false

[*.{yml,reek,rviz,yaml}]
# Note these two lines simply tell GitHub to stop using
# 8-column tab-widths when it's so damn easy for them to
# add a repository setting which controls this.

indent_size = 4
indent_style = tab

# If you work on my projects, feel free to set your tabs
# to whatever width you're actuakkky most comfortable with:
# just don't save them to spaces, because that's the part when
# you become another mindles tab-hater who can't explain why.

[*.{yml,yaml}]
indent_style = space
indent_size = 4


# Two lone exceptions to the "Tabs-only/tabs-always" rules:

# 1. You're writing in Lisp or any one of its major dialects (including Scheme, but not WebAssembly)
[*.{el,elc,eld,spacemacs,_emacs,emacs,emacs.desktop,abbrev_defs,Project.ede,gnus,viper}]
trim_trailing_whitespace = true
indent_style = space
indent_size = 2


# 2. You're formatting a code-block for your commit message, which I'm damn hoping
# toy'll add something of insightful enough that it couldn't be adequately
# explained by prose alone.
#
1 change: 0 additions & 1 deletion eslint/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": [
"error",
"double",
Expand Down

0 comments on commit 7bd2886

Please sign in to comment.