Skip to content

Commit

Permalink
test: add babel.config.js to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Mar 9, 2022
1 parent d4aa56c commit 567db81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -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'
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 567db81

Please sign in to comment.