Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Aug 31, 2023
1 parent 34ac8dc commit 0ae5c05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import jsPlugin from '@eslint/js'
import esmConfig from 'eslint-plugin-n/configs/recommended-module.js'
import cjsConfig from 'eslint-plugin-n/configs/recommended-script.js'
'use strict'

export default [
const jsPlugin = require('@eslint/js')
const esmConfig = require('eslint-plugin-n/configs/recommended-module.js')
const cjsConfig = require('eslint-plugin-n/configs/recommended-script.js')

module.exports = [
jsPlugin.configs.recommended,
{
files: ['**/*.{js,mjs}'],
files: ['**/*.mjs'],
...esmConfig,
},
{
files: ['**/*.cjs'],
files: ['**/*.{js,cjs}'],
...cjsConfig,
},
]
2 changes: 2 additions & 0 deletions lib/axios.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const { parse, stringify } = require('./jsonb.cjs')

module.exports.transformRequest = function transformRequest(data, headers) {
Expand Down

0 comments on commit 0ae5c05

Please sign in to comment.