fix format check

This commit is contained in:
Elliott Marquez 2020-07-22 17:17:11 -04:00
parent c086377e9a
commit cb0319fc43
2 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
"clean:scripts": "del-cli scripts/tsc-out",
"dev": "es-dev-server --node-resolve --preserve-symlinks",
"format": "clang-format --version; find . -name '*.ts' | grep -v node_modules | grep -v .d.ts | grep -v -- -css.ts | xargs clang-format -style=file -i",
"format:check": "npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m Project is not formatted. Please run \"npm run format\".' && false)",
"format:check": "npm run format && git diff --exit-code || (echo '\\033[31mERROR:\\033[0m Project is not formatted. Please run \"npm run format\".' && false)",
"lint:imports": "node scripts/check-imports.js",
"lint": "npm run lint:typescript && npm run lint:lit",
"lint:fix": "npm run lint:typescript -- --fix && npm run lint:lit -- --fix",

View File

@ -23,8 +23,7 @@ import {ripple} from '@material/mwc-ripple/ripple-directive.js';
import {html, property, query} from 'lit-element';
export class IconButtonToggleBase extends BaseElement {
protected mdcFoundationClass =
MDCIconButtonToggleFoundation;
protected mdcFoundationClass = MDCIconButtonToggleFoundation;
protected mdcFoundation!: MDCIconButtonToggleFoundation;