chore: jsx
This commit is contained in:
parent
0f04e43132
commit
ed1fec1e57
|
@ -25,6 +25,7 @@
|
|||
"@babel/eslint-parser": "^7.13.10",
|
||||
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
||||
"@babel/plugin-proposal-private-methods": "^7.12.13",
|
||||
"@babel/plugin-syntax-jsx": "^7.12.13",
|
||||
"@neutrinojs/airbnb": "^9.4.0",
|
||||
"@neutrinojs/banner": "^9.4.0",
|
||||
"@neutrinojs/copy": "^9.4.0",
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
const {
|
||||
LATUS_WEBPACK_CONFIG = require.resolve('@latus/build/build/webpack.config.js'),
|
||||
} = process.env;
|
||||
|
||||
const config = {
|
||||
globals: {
|
||||
__non_webpack_require__: true,
|
||||
|
@ -15,6 +19,7 @@ const config = {
|
|||
plugins: [
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-private-methods',
|
||||
'@babel/plugin-syntax-jsx',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -28,6 +33,14 @@ const config = {
|
|||
'padded-blocks': ['error', {classes: 'always'}],
|
||||
yoda: 'off',
|
||||
},
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: {},
|
||||
webpack: {
|
||||
config: LATUS_WEBPACK_CONFIG,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
|
|
Loading…
Reference in New Issue
Block a user