summaryrefslogtreecommitdiff
path: root/tools/lint.py
AgeCommit message (Collapse)Author
2020-11-05build: rewrite tools/ scripts to deno (#8247)Bartek Iwańczuk
This commit rewrites scripts in "tools/" directory to use Deno instead of Python. In return it allows to remove huge number of Python packages in "third_party/".
2020-11-03build: migrate to dlint (#8176)Bartek Iwańczuk
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
2020-10-02refactor: use parentheses in print statements in python (#7779)j4qfrost
2020-09-23fix: ignore fileExists in tsc host (#7635)Kitson Kelly
Fixes #7630
2020-08-28Move benchmarks to Rust (#7134)Valentin Anger
All benchmarks are done in Rust and can be invoked with `cargo bench`. Currently this has it's own "harness" that behaves like `./tools/benchmark.py` did. Because of this tests inside `cli/bench` are currently not run. This should be switched to the language provided harness once the `#[bench]` attribute has been stabilized.
2020-08-03fix(cli): add support for non-UTF8 source files (#6789)Maayan Hanin
Fixes: #5542
2020-07-22Reduce size of TypeScript Compiler snapshot (#6809)Ryan Dahl
This PR is intentionally ugly. It duplicates all of the code in cli/js2/ into cli/tsc/ ... because it's very important that we all understand that this code is unnecessarily duplicated in our binary. I hope this ugliness provides the motivation to clean it up. The typescript git submodule is removed, because it's a very large repo and contains all sorts of stuff we don't need. Instead the necessary files are copied directly into the deno repo. Hence +200k lines. COMPILER_SNAPSHOT.bin size ``` master 3448139 this branch 3320972 ``` Fixes #6812
2020-07-21fix(tools/lint): don't exceed max command line length on windows (#6804)木杉
2020-06-09upgrade: deno_lint v0.1.8 (#6208)Bartek Iwańczuk
2020-05-22fix: SWC lexer settings and silent errors (#5752)Bartek Iwańczuk
This commit changes how error occurring in SWC are handled. Changed lexer settings to properly handle TS decorators. Changed output of SWC error to annotate with position in file.
2020-05-09add option to lint and format only staged files (#5172)Michał Zdunek
2020-02-27Add clippy to /tools/lint.py (#4132)João Souto
2020-02-25upgrade: TypeScript 3.8 (#4100)Kitson Kelly
2020-01-29feat: dprint formatter (#3820)Bartek Iwańczuk
* rewrite fmt_test in Rust, remove tools/fmt_test.py * remove //std/prettier
2020-01-05Replace libdeno with rusty_v8 (#3556)Ry Dahl
2020-01-02Happy new year! (#3578)Ry Dahl
2019-11-19feat(std/node) add CommonJS require (#3380)Kevin (Kun) "Kassimo" Qian
2019-11-14Loader: support .wasm imports (#3328)Kevin (Kun) "Kassimo" Qian
* loader: support .wasm imports * http_server: true * Support named exports * Clippy
2019-10-31Upgrade node_modules, change tagline, clean up root directory (#3247)Ry Dahl
* Upgrade node_modules * Simplify tagline * Move gclient_config.py out of root * Move package.json to tools * Remove yarn.lock * Remove CONTRIBUTING.md
2019-10-09Run deno_std tests in github actionsRyan Dahl
2019-09-16Fix and enable linting of deno_typescript/*, tools/*, website/* (#2962)Bert Belder
2019-09-15Move GN root into //core/libdeno (#2943)Christian Moritz
2019-09-15tools: refactor lint.py and format.py (#2950)Bert Belder
2019-09-15tools: clean up third_party.py, and merge prebuilt.py into it (#2950)Bert Belder
* Remove reference to removed dir 'third_party/rust_crates'. * Remove reference to unused environment variable 'DENO_NINJA_PATH'. * Remove helper functions 'root()' and 'tp()'. * Move definition of 'third_party_path' to build.py. * Move definition of 'gn_exe()' to setup.py. * Move 'download_sccache()' and 'download_hyperfine()' from prebuilt.py to third_party.py, and delete prebuilt.py. * Add helper function 'get_platform_dir_name()' to locate the platform-specific 'v8/buildtools/<platform>' and 'prebuilt/<platform>' directories. * Add helper function 'get_prebuilt_tool_path()' that returns the full path to a platform-specific executable in //prebuilt. * Cosmetic improvements.
2019-09-15tools: consistently use 'sys.executable' instead of 'python' (#2950)Bert Belder
2019-09-11Upgrade pylint (#2917)Ryan Dahl
depot_tools is removing pylint from its distribution so we must maintain our own copy.
2019-04-21Fix eslint warnings (#2151)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-03-30Move //libdeno to //core/libdeno (#2015)Ryan Dahl
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
2019-03-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-02-26deno_core (#1827)Ryan Dahl
A new low-level crate with focus on speed. This doesn't yet hook into the existing code base.
2019-02-11fix: improve formatting (#1732)Yoshiya Hinosawa
2019-01-30Fix cpplintRyan Dahl
2019-01-24Minor code cleanups (#1570)JaePil Jung
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2018-11-30Use pylint.Ryan Dahl
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-05tslint warning supress using tsconfigcedric05
2018-10-05FormatRyan Dahl
2018-10-05Changed tools/lint.py to lint the entire js and tests directories. (#900)Chris Bystrek
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests.
2018-09-24tools: make color output work on windowsBert Belder
2018-07-27Ignore any generated TypeScript filesKitson Kelly
2018-07-08Clean up tools/Ryan Dahl
- Factor out tools/util.py - Move js/*.py to tools. - Rewrite tools/format.sh in python. - Run lint first in travis.
2018-07-08Rewrite tools/lint.sh in python (#343)Hao Li