Skip to content

Commit

Permalink
Switch to xo for linting (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 19, 2023
1 parent efbf295 commit 056fa80
Show file tree
Hide file tree
Showing 5 changed files with 8,864 additions and 1,439 deletions.
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

0 comments on commit 056fa80

Please sign in to comment.