Skip to content

Commit

Permalink
fix(compiler): disable eslint for components.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Oct 14, 2019
1 parent 358e925 commit 09ee00c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler/types/generate-component-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function generateComponentTypes(cmp: d.ComponentCompilerMeta): d.TypesMod
jsx: `interface ${tagNameAsPascal} {${stencilComponentJSXAttributes}}`,
element: `
interface ${htmlElementName} extends Components.${tagNameAsPascal}, HTMLStencilElement {}
var ${htmlElementName}: {
const ${htmlElementName}: {
prototype: ${htmlElementName};
new (): ${htmlElementName};
};`,
Expand Down
3 changes: 2 additions & 1 deletion src/compiler/types/types-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as d from '../../declarations';


export const COMPONENTS_DTS_HEADER = `/* tslint:disable */
export const COMPONENTS_DTS_HEADER = `/* eslint-disable */
/* tslint:disable */
/**
* This is an autogenerated file created by the Stencil compiler.
* It contains typing information for all components that exist in this project.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/set-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const setValue = (ref: d.RuntimeRef, propName: string, newVal: any, cmpMe
} else if (hostRef.$flags$ & HOST_FLAGS.devOnDidLoad) {
console.debug(
...STENCIL_DEV_MODE,
`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillRender()"`,
`The state/prop "${propName}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,
'\nElement', elm,
'\nNew value', newVal,
'\nOld value', oldVal
Expand Down

0 comments on commit 09ee00c

Please sign in to comment.