Skip to content

Commit

Permalink
build: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Feb 15, 2023
1 parent 662f7e3 commit 74e9eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const test = require('ava')
const plugin = require('../lib')
const posthtml = require('posthtml')

const path = require('path')
const {readFileSync} = require('fs')
const test = require('ava')
const posthtml = require('posthtml')
const plugin = require('../lib/index.js')

const fixture = file => readFileSync(path.join(__dirname, 'fixtures', `${file}.html`), 'utf8')
const expected = file => readFileSync(path.join(__dirname, 'expected', `${file}.html`), 'utf8')
Expand Down
7 changes: 5 additions & 2 deletions xo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ module.exports = {
space: true,
rules: {
semi: 0,
'arrow-body-style': 0,
'unicorn/prefer-module': 0,
'unicorn/string-content': 0,
'unicorn/prefer-node-protocol': 0,
'promise/prefer-await-to-then': 0,
'unicorn/no-abusive-eslint-disable': 0,
quotes: ['error', 'single', {allowTemplateLiterals: true}]
}
quotes: ['error', 'single', {allowTemplateLiterals: true}],
},
};

0 comments on commit 74e9eb1

Please sign in to comment.