Skip to content

Instantly share code, notes, and snippets.

@nakamorichi
Created August 10, 2017 07:39
Show Gist options
  • Save nakamorichi/aadbc8431ce6655abdd0a042dec07a25 to your computer and use it in GitHub Desktop.
Save nakamorichi/aadbc8431ce6655abdd0a042dec07a25 to your computer and use it in GitHub Desktop.
TypeScriptのリンター(TSLint)の設置 ref: http://qiita.com/Kitanotori/items/118a09db97dfd8d37b04
import TextareaAutosize from 'react-textarea-autosize';
export const Routes: React.StatelessComponent<{}> = () => (...);
"lint": "tslint 'src/**/*.ts'"
"lint": "tslint 'src/**/*.ts{,x}'"
"scripts": {
"build": "npm run clean && npm run lint && tsc",
"clean": "del-cli lib/* !.gitignore",
"lint": "tslint --format stylish 'src/**/*.ts{,x}'",
"start": "cross-env NODE_ENV=production node .",
"start:dev": "cross-env NODE_ENV=development nodemon -e ts -w src -x ts-node src/app.ts",
"test": "cross-env NODE_ENV=test mocha --recursive test"
}
{
"extends": ["tslint-config-airbnb"],
"rules": {
"max-line-length": [true, 120],
"object-shorthand-properties-first": false,
"radix": false,
"ter-arrow-parens": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment