mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +02:00
chore(v2): fix eslint TS setup (#2949)
* update eslint parser * fix yarn lint script * lint-staged, lint ts files * fix TS eslint configuration + fix some lint errors (https://github.com/facebook/docusaurus/pull/2949) * eslint root + separate linting in 2 scripts * test commit * test commit * test commit * fix /// TS directive
This commit is contained in:
parent
38c8478e75
commit
72884a0c1a
22 changed files with 391 additions and 60 deletions
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Copyright (c) 2017-present, Facebook, Inc.
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
|
@ -36,7 +36,7 @@ const blogPosts: BlogPost[] = [
|
|||
},
|
||||
];
|
||||
|
||||
const transform = (filepath) => {
|
||||
const transform = (filepath: string) => {
|
||||
const content = fs.readFileSync(filepath, 'utf-8');
|
||||
const transformedContent = linkify(content, sitePath, blogPath, blogPosts);
|
||||
return [content, transformedContent];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue