Browse Source

fix linting errors

pull/217/head
butlerx 5 years ago
parent
commit
848c8ee9a4
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  1. 8
      .eslintrc.js
  2. 2
      index.js

8
.eslintrc.js

@ -21,6 +21,14 @@ module.exports = {
'no-use-before-define': ['error', { functions: false }], 'no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/no-use-before-define': ['error', { functions: false }], '@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'import/prefer-default-export': 'off', 'import/prefer-default-export': 'off',
'import/extensions': [
'error',
'always',
{
js: 'ignorePackages',
ts: 'never',
},
],
}, },
settings: { settings: {
'import/resolver': { 'import/resolver': {

2
index.js

@ -1,5 +1,5 @@
#! /usr/bin/env node #! /usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/no-var-requires, import/no-unresolved */
const yargs = require('yargs'); const yargs = require('yargs');
const wetty = require('./dist').default; const wetty = require('./dist').default;

Loading…
Cancel
Save