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 f99a5ed
Show file tree
Hide file tree
Showing 15 changed files with 2,556 additions and 844 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: npm install
run: npm install
Expand All @@ -21,4 +23,4 @@ jobs:
run: npm run test

- name: lint
run: npm run lint
run: npm run lint -- --base origin/${{ github.event.pull_request.base.ref }}
14 changes: 14 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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 located at the root level, rather than within the src/
// directory, to enable formatting for all files across the project, not just
// those within src/.

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

0 comments on commit f99a5ed

Please sign in to comment.