Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to xo for linting #113

Merged
merged 1 commit into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const fs = require('fs');
const path = require('path');
const process = require('process');
const { debuglog } = require('util');

const getModuleType = require('module-definition');
Expand All @@ -18,6 +19,7 @@ const detectiveStylus = require('detective-stylus');
const detectiveTypeScript = require('detective-typescript');

const debug = debuglog('precinct');
// eslint-disable-next-line n/no-deprecated-api
const natives = process.binding('natives');

/**
Expand All @@ -33,7 +35,7 @@ function precinct(content, options = {}) {

let dependencies = [];
let ast;
let type = options.type;
let { type } = options;

// We assume we're dealing with a JS file
if (!type && typeof content !== 'object') {
Expand Down
Loading