Skip to content

Commit

Permalink
chore: setup eslint and editorconfig
Browse files Browse the repository at this point in the history
Co-authored-by: und3fined-v01d <mail@sohamp.dev>
  • Loading branch information
2 people authored and sudiptog81 committed Jul 14, 2021
1 parent 2ab3086 commit 4b7741c
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = tab
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.js]
quote_type = single

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@ljharb", "@ljharb/eslint-config/node/latest"]
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,8 @@ dist

# TernJS port file
.tern-port

# Only apps should have lockfiles
npm-shrinkwrap.json
package-lock.json
yarn.lock
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

'use strict';
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "can-merge",
"version": "1.0.0",
"description": "",
"main": "index.js",
"bin": {
"can-merge": "./index.js"
},
"scripts": {
"lint": "eslint --ext=js,mjs ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/ljharb/can-merge.git"
},
"keywords": [],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/ljharb/can-merge/issues"
},
"homepage": "https://github.com/ljharb/can-merge#readme",
"devDependencies": {
"@ljharb/eslint-config": "^17.6.0",
"eslint": "^7.29.0"
}
}

0 comments on commit 4b7741c

Please sign in to comment.