@@ -9,7 +9,7 @@ JS and Dart versions. It also explains the basic mechanics of using `git`, `node
99* [ Installing NPM Modules and Dart Packages] ( #installing-npm-modules-and-dart-packages )
1010* [ Build commands] ( #build-commands )
1111* [ Running Tests Locally] ( #running-tests-locally )
12- * [ Formatting ] ( #clang-format )
12+ * [ Code Style ] ( #code-style )
1313* [ Project Information] ( #project-information )
1414* [ CI using Travis] ( #ci-using-travis )
1515* [ Transforming Dart code] ( #transforming-dart-code )
@@ -227,7 +227,9 @@ Angular specific command line options when running protractor:
227227Angular specific command line options when running protractor (e.g. force gc, ...):
228228` $(npm bin)/protractor protractor-{js|dart2js}-conf.js --ng-help `
229229
230- ## Formatting with <a name =" clang-format " >clang-format</a >
230+ ## Code Style
231+
232+ ### Formatting with <a name =" clang-format " >clang-format</a >
231233
232234We use [ clang-format] ( http://clang.llvm.org/docs/ClangFormat.html ) to automatically enforce code
233235style for our TypeScript code. This allows us to focus our code reviews more on the content, and
@@ -273,6 +275,14 @@ to some whitespace difference.
273275* ` clang-format ` integrations are also available for many popular editors (` vim ` , ` emacs ` ,
274276 ` Sublime Text ` , etc.).
275277
278+ ### Linting
279+
280+ We use [ tslint] ( https://github.com/palantir/tslint ) for linting. See linting rules in [ gulpfile] ( gulpfile.js ) . To lint, run
281+
282+ ``` shell
283+ $ gulp lint
284+ ```
285+
276286## Generating the API documentation
277287
278288The following gulp task will generate the API docs in the ` dist/angular.io/partials/api/angular2 ` :
0 commit comments