Skip to content

Commit

Permalink
Lint and use NPM
Browse files Browse the repository at this point in the history
Signed-off-by: Audrow Nash <[email protected]>
  • Loading branch information
paudrow committed Mar 13, 2022
1 parent bd3ffc1 commit 93faa90
Show file tree
Hide file tree
Showing 18 changed files with 8,619 additions and 4,550 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- eslint-config-prettier
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
rules:
'@typescript-eslint/no-non-null-assertion': 'off'
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
11 changes: 11 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pull_request_rules:
- name: Automatic merge on approval or dependabot PR
conditions:
- and:
- or:
- '#approved-reviews-by>=1'
- author~=^dependabot(|-preview)\[bot\]$
- check-success=continuous-integration
actions:
merge:
method: squash
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
pull_request:

jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: 16
- name: Install
run: npm ci
- name: Validate
run: npm run validate
8 changes: 8 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"*.+(js|jsx|ts|tsx)": [
"npm run lint -- --fix"
],
"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|mdx)": [
"npm run format"
]
}
16 changes: 14 additions & 2 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
arrowParens: always
bracketSameLine: false
bracketSpacing: false
embeddedLanguageFormatting: 'auto'
htmlWhitespaceSensitivity: 'css'
insertPragma: false
jsxSingleQuote: false
proseWrap: 'preserve'
quoteProps: 'as-needed'
printWidth: 100
trailingComma: "all"
tabWidth: 2
requirePragma: false
semi: true
singleQuote: true
trailingComma: 'all'
tabWidth: 2
useTabs: false
vueIndentScriptAndStyle: false
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"deno.enable": false
}
}
Loading

0 comments on commit 93faa90

Please sign in to comment.