Skip to content

Commit

Permalink
👕 refactor: Lint to make xo happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Aug 2, 2021
1 parent bbe58de commit 67abb98
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
9 changes: 2 additions & 7 deletions src/parseA3.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ import validateLineLength from './validateLineLength.js';
export default function parseA3(parts, options) {
validateLineLength(parts, 'A3', [2, 3, 4, 5], options.trailing.A3);

const [
descriptor,
reference,
streetandnumber,
zip,
municipality,
] = parts.slice(0, -1);
const [descriptor, reference, streetandnumber, zip, municipality] =
parts.slice(0, -1);

return {
descriptor,
Expand Down
12 changes: 2 additions & 10 deletions src/parseL1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,8 @@
export default function parseL1(parts, options) {
validateLineLength(parts, 'L1', [7, 8], options.trailing.L1);

const [
descriptor,
reference,
code,
name,
normal,
unit,
flag,
measure,
] = parts;
const [descriptor, reference, code, name, normal, unit, flag, measure] =
parts;

return {
descriptor,
Expand Down
2 changes: 1 addition & 1 deletion test/data/anonymize.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const chardet = require('chardet');
const iconv = require('iconv-lite');

const {parse, stringify, anonymize} = require('../..');
const {parse, stringify, anonymize} = require('../../src/index.js');

function anonymizeFile(filepath, options) {
const filename = path.basename(filepath);
Expand Down
2 changes: 1 addition & 1 deletion test/data/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require('@babel/polyfill');
const fs = require('fs');
const path = require('path');

const {parse} = require('../..');
const {parse} = require('../../src/index.js');

function init(filepath) {
const filename = path.basename(filepath);
Expand Down

0 comments on commit 67abb98

Please sign in to comment.