Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkln committed Jul 18, 2023
1 parent 14b67bd commit d24431f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['prettier'],
env: {
node: true,
browser: true,
worker: true,
es2022: true,
},
rules: {
'prettier/prettier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ ignoreRestSiblings: true, argsIgnorePattern: '^_' },
],
},
overrides: [
{
files: ['*d.ts'],
rules: {
'no-undef': 'off',
},
},
{
files: ['*js'],
globals: {
webcm: 'writable',
},
},
],
}

2 changes: 1 addition & 1 deletion src/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ComponentSettings, MCEvent } from '@managed-components/types'
const USER_DATA: Record<string, { hashed?: boolean }> = {
email: { hashed: true },
phone_number: { hashed: true },
external_id: { hashed: true }
external_id: { hashed: true },
}

const getTtclid = (event: MCEvent) => {
Expand Down

0 comments on commit d24431f

Please sign in to comment.