Fix linting
This commit is contained in:
parent
2b4eaf6975
commit
ca703c0131
2 changed files with 6 additions and 2 deletions
|
|
@ -34,7 +34,8 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "rm -rf lib/* && webpack --mode development -w",
|
"start": "rm -rf lib/* && webpack --mode development -w",
|
||||||
"build": "rm -rf lib/* docs/* && typedoc && webpack --mode production"
|
"build": "rm -rf lib/* docs/* && typedoc && webpack --mode production",
|
||||||
|
"lint": "eslint src/**/*.{js,ts,json} --fix && prettier --write src/**/*.{js,ts,json}"
|
||||||
},
|
},
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"types": "lib/src/main.d.ts",
|
"types": "lib/src/main.d.ts",
|
||||||
|
|
@ -64,6 +65,7 @@
|
||||||
"typedoc-plugin-extras": "^1.1.6",
|
"typedoc-plugin-extras": "^1.1.6",
|
||||||
"typescript": "^3.9.7",
|
"typescript": "^3.9.7",
|
||||||
"webpack": "^4.44.2",
|
"webpack": "^4.44.2",
|
||||||
"webpack-cli": "^3.3.11"
|
"webpack-cli": "^3.3.11",
|
||||||
|
"eslint-plugin-json-format": "^2.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,12 @@ import { DrawableDescriptor } from './drawable-descriptor';
|
||||||
export class EmptyDrawable extends Drawable {
|
export class EmptyDrawable extends Drawable {
|
||||||
public static readonly descriptor: DrawableDescriptor;
|
public static readonly descriptor: DrawableDescriptor;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
public minDistance(target: vec2): number {
|
public minDistance(target: vec2): number {
|
||||||
throw new Error('Unimplemented');
|
throw new Error('Unimplemented');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
protected getObjectToSerialize(transform2d: mat2d, transform1d: number): any {
|
protected getObjectToSerialize(transform2d: mat2d, transform1d: number): any {
|
||||||
throw new Error('Unimplemented');
|
throw new Error('Unimplemented');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue