Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Apr 18, 2021
1 parent 44f8f9f commit 4be616c
Show file tree
Hide file tree
Showing 7 changed files with 2,422 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"extends": [
"eslint:recommended"
],
"plugins": [
"jsdoc"
],
"env": {
"es6": true,
"node": true,
"jest": true
},
"parserOptions": {
"sourceType": "module"
},
"globals": {
"$w": "readonly"
},
"rules": {
"linebreak-style": "off",
"no-console": "off",
"no-else-return": "error",
"require-await": "error",
"no-trailing-spaces": "error",
"indent": [
"error",
2,
{
"SwitchCase": 2
}
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
]
}
}
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: repeater-scope

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: npm ci
- run: npm run lint
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.DS_Store

*.log
*.tgz
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.16
Loading

0 comments on commit 4be616c

Please sign in to comment.