Skip to content

Commit c166f48

Browse files
committed
0.1.44
1 parent 6f072fb commit c166f48

File tree

145 files changed

+8079
-6170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+8079
-6170
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 2
5+
indent_size = 4
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true

.erb/configs/webpack.config.base.ts

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,56 +4,56 @@
44

55
import webpack from 'webpack';
66
import TsconfigPathsPlugins from 'tsconfig-paths-webpack-plugin';
7+
import { dependencies as externals } from '../../package.json';
78
import webpackPaths from './webpack.paths';
8-
import { dependencies as externals } from '../../release/app/package.json';
99

1010
const configuration: webpack.Configuration = {
11-
externals: [...Object.keys(externals || {}), 'fsevents'],
12-
13-
stats: 'errors-only',
14-
15-
module: {
16-
rules: [
17-
{
18-
test: /\.[jt]sx?$/,
19-
exclude: /node_modules/,
20-
use: {
21-
loader: 'ts-loader',
22-
options: {
23-
// Remove this line to enable type checking in webpack builds
24-
transpileOnly: true,
25-
compilerOptions: {
26-
module: 'esnext',
11+
externals: [...Object.keys(externals || {}), 'fsevents'],
12+
13+
stats: 'errors-only',
14+
15+
module: {
16+
rules: [
17+
{
18+
test: /\.[jt]sx?$/,
19+
exclude: /node_modules/,
20+
use: {
21+
loader: 'ts-loader',
22+
options: {
23+
// Remove this line to enable type checking in webpack builds
24+
transpileOnly: true,
25+
compilerOptions: {
26+
module: 'esnext',
27+
},
28+
},
29+
},
2730
},
28-
},
31+
],
32+
},
33+
34+
output: {
35+
path: webpackPaths.srcPath,
36+
// https://github.com/webpack/webpack/issues/1114
37+
library: {
38+
type: 'commonjs2',
2939
},
30-
},
31-
],
32-
},
40+
},
3341

34-
output: {
35-
path: webpackPaths.srcPath,
36-
// https://github.com/webpack/webpack/issues/1114
37-
library: {
38-
type: 'commonjs2',
42+
/**
43+
* Determine the array of extensions that should be used to resolve modules.
44+
*/
45+
resolve: {
46+
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
47+
modules: [webpackPaths.srcPath, 'node_modules'],
48+
// There is no need to add aliases here, the paths in tsconfig get mirrored
49+
plugins: [new TsconfigPathsPlugins()],
3950
},
40-
},
41-
42-
/**
43-
* Determine the array of extensions that should be used to resolve modules.
44-
*/
45-
resolve: {
46-
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
47-
modules: [webpackPaths.srcPath, 'node_modules'],
48-
// There is no need to add aliases here, the paths in tsconfig get mirrored
49-
plugins: [new TsconfigPathsPlugins()],
50-
},
51-
52-
plugins: [
53-
new webpack.EnvironmentPlugin({
54-
NODE_ENV: 'production',
55-
}),
56-
],
51+
52+
plugins: [
53+
new webpack.EnvironmentPlugin({
54+
NODE_ENV: 'production',
55+
}),
56+
],
5757
};
5858

5959
export default configuration;

.eslintrc.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
module.exports = {
2-
extends: 'erb',
2+
extends: [
3+
'erb',
4+
'plugin:import/errors',
5+
'plugin:import/warnings',
6+
'plugin:import/typescript',
7+
],
38
rules: {
4-
// A temporary hack related to IDE not resolving correct package.json
59
'import/no-extraneous-dependencies': 'off',
610
'import/no-unresolved': 'error',
711
'import/prefer-default-export': 'off',
@@ -18,11 +22,8 @@ module.exports = {
1822
'no-param-reassign': 'off',
1923
'no-nested-ternary': 'off',
2024
'no-new': 'off',
21-
// 'import/no-cycle': 'off',
22-
// 'import/no-named-as-default': 'off',
23-
// 'import/no-named-as-default-member': 'off',
25+
'no-bitwise': 'off',
2426
'react/no-array-index-key': 'off',
25-
// Since React 17 and typescript 4.1 you can safely disable the rule
2627
'react/react-in-jsx-scope': 'off',
2728
'react/function-component-definition': 'off',
2829
'react/jsx-props-no-spreading': 'off',
@@ -52,7 +53,6 @@ module.exports = {
5253
},
5354
settings: {
5455
'import/resolver': {
55-
// See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
5656
node: {},
5757
webpack: {
5858
config: require.resolve('./.erb/configs/webpack.config.eslint.ts'),

0 commit comments

Comments
 (0)