From 567db81dcca234ab8eda1d7ee2a3addc96761159 Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Wed, 9 Mar 2022 10:43:30 -0500 Subject: [PATCH] test: add babel.config.js to lint --- babel.config.js | 24 +++++++++++------------- package.json | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/babel.config.js b/babel.config.js index 317dbfb..311b920 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,19 +1,17 @@ module.exports = { - "presets": [ - "@babel/preset-env", - "@babel/preset-react" + presets: [ + '@babel/preset-env', + '@babel/preset-react' ], - "plugins": [ - // "@babel/plugin-transform-runtime", - // "@babel/plugin-proposal-object-rest-spread", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-syntax-class-properties" + plugins: [ + '@babel/plugin-proposal-class-properties', + '@babel/plugin-syntax-class-properties' ], - "env": { - "test": { - "plugins": [ - "@babel/plugin-transform-modules-commonjs", - "babel-plugin-istanbul" + env: { + test: { + plugins: [ + '@babel/plugin-transform-modules-commonjs', + 'babel-plugin-istanbul' ] } } diff --git a/package.json b/package.json index 96fbb65..2ebfe05 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ ], "scripts": { "test": "jest", - "lint": "eslint src", + "lint": "eslint src babel.config.js", "build:clean": "rimraf dist lib bundles", "build:files": "rollup --config", "build": "npm run build:clean && npm run build:files"