Skip to content

Commit

Permalink
Improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Mar 26, 2021
1 parent 6127057 commit 908ba16
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint', 'simple-import-sort'],
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
ignorePatterns: ['bin', 'dist', 'node_modules'],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
Expand Down
3 changes: 2 additions & 1 deletion index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Reader } from '@maxmind/geoip2-node'
import { Plugin, PluginMeta } from '@posthog/plugin-scaffold'
// @ts-ignore
import { createPageview, resetMeta } from '@posthog/plugin-scaffold/test/utils'
import { join } from 'path'
import { Reader } from '@maxmind/geoip2-node'

import * as index from '.'

const { processEvent } = index as Required<Plugin>
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
"@types/jest": "^26.0.19",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"eslint": "^7.0.0",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "~4.3.6",
"jest": "^26.6.3",
"lint-staged": "~10.5.3",
Expand All @@ -46,6 +51,7 @@
}
},
"lint-staged": {
"*.{js,ts}": "eslint --fix",
"*.{ts,tsx,js,jsx,json,yaml,toml,css,scss,html,xml}": "prettier --write"
}
}
Loading

0 comments on commit 908ba16

Please sign in to comment.