Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@threads/tsconfig

Package Overview
Dependencies
Maintainers
18
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threads/tsconfig - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

2

package.json

@@ -58,3 +58,3 @@ {

},
"version": "1.1.0"
"version": "2.0.0"
}
module.exports = {
arrowParens: 'always',
printWidth: 120,
printWidth: 100,
tabWidth: 2,

@@ -5,0 +5,0 @@ useTabs: false,

@@ -39,2 +39,20 @@ # tsconfig

### TypesScript Config options you may want to enable/disable
Compiler Options:
- `experimentalDecorators` - Enables experimental support for ES decorators (we default this to `false`)
- `importHelpers` - If you make `tslib` a dependency, you can tell typescript to import helpers from there, instead of inlining them in every file. Because we target ES2018, there are very few helpers (we default this to `false`)
- `esModuleInterop` - enables `import foo from './foo';` to interop with CommonJS modules. You can disable this and use `import foo = require('./foo');` to avoid the extra helper being inserted in your code (we default this to `true`)
- `noEmitOnError` - prevents emitting output when errors are reported. This is set to `false` so you can test your code even if it doesn't typecheck. (we default this to `false`)
- `declaration` - you can skip generating declaration files by setting this to `false` if you're not going to publish your code as a library (we default this to `true`)
You may want to ignore type checking in your tests:
```json
{
"exclude": ["node_modules", "lib", "src/__tests__", "src/**/__tests__/**/*.*", "*.test.ts"]
}
```
## TSLint Config

@@ -70,2 +88,8 @@

### Configure Linting
You can enable or disable tslint rules on a per project basis by adding `"rule-name": false` in `tslint.json`'s `"rules"` object. You can also disable a lint rule for an individual statement using `// tslint:disable-next-line:object-literal-sort-keys` in your code. You can use `// tslint:disable` to disable all tslint rules for an entire file. See https://palantir.github.io/tslint/usage/rule-flags/ for more on this.
You can find a complete list of what each rule means here: https://palantir.github.io/tslint/rules/
## Prettier Config

@@ -72,0 +96,0 @@

@@ -19,3 +19,6 @@ module.exports = {

['Object', 'Avoid using the `Object` type. Did you mean `object`?'],
['Function', 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.'],
[
'Function',
'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.',
],
['Boolean', 'Avoid using the `Boolean` type. Did you mean `boolean`?'],

@@ -362,4 +365,11 @@ ['Number', 'Avoid using the `Number` type. Did you mean `number`?'],

*/
'import-blacklist': [true, 'lodash', 'date-fns', '@material-ui/core', '@material-ui/styles', '@material-ui/icons'],
'import-blacklist': [
true,
'lodash',
'date-fns',
'@material-ui/core',
'@material-ui/styles',
'@material-ui/icons',
],
},
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc