Skip to content

Commit

Permalink
maint/dev ~ add (and use) EditorConfig-checker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jul 31, 2022
1 parent 8e26398 commit c1aa7c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .ecrc.JS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"#": "EditorConfig-checker Config (for JS projects)",
"#ref": "<https://github.com/editorconfig-checker/editorconfig-checker#configuration>",
"#version": "v2022-07-30 [rivy]",
"#x-spell": "/* spell-checker:ignore (people) Roy Ivy III * rivy */",
"Exclude": ["([._@#$]?build|[._@#$]?coverage|dist|target|vendor)/.*"],
"SpacesAfterTabs": true,
"Disable": { "MaxLineLength": true }
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"# lint:commits # check for commit flaws (using `commitlint` and `cspell`)": "",
"lint:commits": "run-s --silent _:v_tag:missing || run-p --silent \"_:lint:commits.new:*\"",
"# lint:editorconfig # check for EditorConfig format flaws (using `editorconfig-checker`)": "",
"lint:editorconfig": "editorconfig-checker -disable-max-line-length -exclude \"(build|dist|vendor)/.*\"",
"lint:editorconfig": "editorconfig-checker -config .ecrc.JS.json",
"# lint:lint # check for code 'lint' (using `eslint`)": "",
"lint:lint": "eslint .",
"# lint:markdown # check for markdown errors (using `remark`)": "",
Expand Down

0 comments on commit c1aa7c3

Please sign in to comment.