Created
August 10, 2017 07:39
-
-
Save nakamorichi/aadbc8431ce6655abdd0a042dec07a25 to your computer and use it in GitHub Desktop.
TypeScriptのリンター(TSLint)の設置 ref: http://qiita.com/Kitanotori/items/118a09db97dfd8d37b04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import TextareaAutosize from 'react-textarea-autosize'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Routes: React.StatelessComponent<{}> = () => (...); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"lint": "tslint 'src/**/*.ts'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"lint": "tslint 'src/**/*.ts{,x}'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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