Before:
[1,2,3,4].filter(function(i) {
return i % 2 === 0;
});
{ | |
"loader": "ts-node/esm", | |
"extensions": ["ts"], | |
"spec": [ | |
"tests/*.ts" | |
] | |
} |
{ | |
"rules": { | |
"no-restricted-syntax": [ | |
"error", | |
{ | |
"selector": "CallExpression[callee.object.type='Identifier'][callee.object.name='it'][callee.property.type='Identifier'][callee.property.name='only']", | |
"message": "it.only is only allowed during development" | |
} | |
] | |
} |
import { Component, Prop } from '@stencil/core'; | |
@Component({ | |
tag: 'x-foo', | |
shadow: true | |
}) | |
export class XFoo { | |
@Prop() | |
public flag: string = 'foo'; |
const webpackConfig = require('./webpack.config.js'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
delete webpackConfig.entry; | |
webpackConfig.bail = false; | |
webpackConfig.stats = 'errors-only'; | |
webpackConfig.plugins.push(new webpack.SourceMapDevToolPlugin({ | |
filename: null, | |
test: /\.(ts|js)($|\?)/i |