Skip to content

Build system update #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
demo
umd
dist
src/__tests__/*
18 changes: 3 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
{
"extends": ["airbnb", "airbnb/hooks"],
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"consistent-this": 0,
"no-console": 0
"react/destructuring-assignment": 0
}
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.16.2
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 6
- 12.16.2
before_install:
- npm install -g npm@latest
cache:
Expand Down
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: [[
'@babel/preset-env',
], '@babel/preset-react'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
};
Loading