Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use modern eslint and limit engines (#735)
* chore: use modern eslint and limit engines * update fs promises * use node >= 12
- Loading branch information
Showing
6 changed files
with
339 additions
and
969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/* eslint-ignore */ | ||
module.exports = require('./dist/babel-test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/* eslint-ignore */ | ||
module.exports = require('../dist/lib/style-transform') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { resolve } from 'path' | ||
import { readFile } from 'mz/fs' | ||
import { promises as fs } from 'fs' | ||
|
||
export default async path => { | ||
const buffer = await readFile(resolve(__dirname, path)) | ||
const buffer = await fs.readFile(resolve(__dirname, path)) | ||
return buffer.toString() | ||
} |
Oops, something went wrong.