Skip to content

Commit

Permalink
Update ts configs, add diff-based linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Apr 9, 2024
1 parent 621c06f commit 26d69d9
Show file tree
Hide file tree
Showing 17 changed files with 2,556 additions and 852 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
run: npm run test

- name: lint
run: npm run lint
run: npm run lint -- --base ${{ github.event.pull_request.base.ref }}
13 changes: 13 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) 2024 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.

// This file is placed at the top level instead of src/ to support formatting
// for all files, not only in src/.

/** @type {import("prettier").Config} */
module.exports = {
plugins: ['prettier-plugin-organize-imports'],
singleQuote: true,
};
Loading

0 comments on commit 26d69d9

Please sign in to comment.