Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Add eslint with config based on nearlib
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Sep 24, 2019
1 parent 69af793 commit 528eef1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tmp-project
32 changes: 32 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
env:
es6: true
node: true
jest: true
extends: 'eslint:recommended'
parserOptions:
ecmaVersion: 2018
rules:
indent:
- error
- 4
linebreak-style:
- error
- unix
quotes:
- error
- single
semi:
- error
- always
no-console: off
globals:
jasmine: true
window: true
fetch: true
Headers: true
document: true
Cookies: true
nearConfig: true
nearlib: true
testSettings: true

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Command line utilities to interact with near blockchain",
"main": "index.js",
"scripts": {
"build": "echo \"Error: not implemented\" && exit 1",
"deploy": "echo \"Error: not implemented\" && exit 1",
"test": "./test/index.sh"
"test": "./test/index.sh",
"lint": "eslint .",
"fix": "eslint . --fix"
},
"repository": {
"type": "git",
Expand All @@ -22,6 +22,7 @@
"near": "./bin/near"
},
"devDependencies": {
"eslint": "^6.4.0",
"strip-ansi-cli": "^2.0.0"
},
"dependencies": {
Expand Down

0 comments on commit 528eef1

Please sign in to comment.