mirror of
https://github.com/Swetrix/swetrix-js.git
synced 2025-03-14 09:55:10 +00:00
* updated dependencies * added prettier * added types * added callback to trackPageViews * removed noUserFlow param * removed noHeartbeat param * debug -> devMode * prevent possible internal values being overwritten by TrackEventOptions * added callback desc * build
14 lines
739 B
JavaScript
14 lines
739 B
JavaScript
module.exports = {
|
|
printWidth: 120, // max 120 chars in line, code is easy to read
|
|
useTabs: false, // use spaces instead of tabs
|
|
tabWidth: 2, // "visual width" of of the "tab"
|
|
trailingComma: 'all', // add trailing commas in objects, arrays, etc.
|
|
semi: false, // Only add semicolons at the beginning of lines that may introduce ASI failures
|
|
singleQuote: true, // '' for stings instead of ""
|
|
bracketSpacing: true, // import { some } ... instead of import {some} ...
|
|
arrowParens: 'always', // braces even for single param in arrow functions (a) => { }
|
|
jsxSingleQuote: true, // '' for react props
|
|
bracketSameLine: false, // pretty JSX
|
|
endOfLine: 'lf', // 'lf' for linux, 'crlf' for windows, we need to use 'lf' for git
|
|
}
|