Skip to content

Commit

Permalink
- Support IE9+ again when compiling with webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardxiao committed Feb 18, 2022
1 parent 78a6cd5 commit 9975a2e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parser": "@babel/eslint-parser",
// Extend existing configuration
// from ESlint and eslint-plugin-react defaults.
"extends": ["airbnb"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
// Enable ES6 support. If you want to use custom Babel
// features, you will need to enable a custom parser
// as described in a section below.
Expand All @@ -20,19 +20,21 @@
"jquery": true
},
// Enable custom plugin known as eslint-plugin-react
"plugins": ["@typescript-eslint"],
"plugins": ["react", "react-hooks"],
"rules": {
"import/no-unresolved": 0,
"react/jsx-filename-extension": {
"extensions": [".jsx", ".tsx"]
},
// Disable `no-console` rule
"no-console": 0,
// Give a warning if identifiers contain underscores
"no-underscore-dangle": 0,
"no-empty-pattern": 0,
"react/prop-types": [0],
"react/prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"react/display-name": [0, { "ignoreTranspilerName": true }]
}
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 2.0.6

- Support IE9+ again when compiling with webpack
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-codes-input",
"version": "2.0.5",
"version": "2.0.6",
"description": "A react component for PIN, verify code and passcode entering.",
"main": "index.js",
"types": "./lib/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions webpack/base.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ export default {
output: 'manifest-rev.json',
}),
],
target: ['web', 'es5'],
};
1 change: 1 addition & 0 deletions webpack/umd.base.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ module.exports = {
globalObject: 'this',
},
plugins,
target: ['web', 'es5'],
};

0 comments on commit 9975a2e

Please sign in to comment.