Skip to content

Commit ce7d5e7

Browse files
authored
Update dependencies (#409)
* fixed high vulns * . * . * node 12 * 4.0.4 * new configs * upd antd * lint * . * lint fixes import * exclude tests from karma reporter * just consts * lint import plugin, tsc works * fix ts emit * tsconfig done * scripts * . * . * . * react scripts requires * lint * depr * travis smoke * . * move pkgs to examples * tests organization * check hot * lint karma * kill webpack * upd eslint, lint fix * babel cacheDirectory * 4.0.5 * . * chlog * . * fix 2 loaders conflict * 4.1.0 * docs about npm scripts * updated daps. added dayjs, @date-io/core, @date-io/days. removed @types/classnames * . * upd loaders * fix * moved deps from examples * upd puppeteer * mui * latest mui * use antd's official css with globals * react * upd sandbox * . * . * optional extract css
1 parent 2fab00c commit ce7d5e7

Some content is hidden

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

63 files changed

+911
-566
lines changed

.babelrc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
"@babel/preset-react"
66
],
77
"plugins": [
8-
["@babel/plugin-proposal-decorators", {
9-
"legacy": true
10-
}],
11-
["@babel/plugin-proposal-class-properties", {
12-
"loose": true
13-
}]
8+
["@babel/plugin-proposal-decorators", { "legacy": true }],
9+
["@babel/plugin-proposal-class-properties", { "loose": true }],
10+
["@babel/plugin-proposal-private-methods", { "loose": true }]
1411
],
1512
"env": {
13+
"production": {
14+
"compact": true,
15+
"comments": false,
16+
"minified": true
17+
},
1618
"test": {
1719
"plugins": [
1820
["istanbul", {
1921
"exclude": [
20-
"tests/**/*.test.js"
22+
// exclude from karma reporter
23+
"tests/**/*"
2124
]
2225
}]
2326
]

.eslintrc.js

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"mocha": true,
6+
"jest": true,
7+
"node": true
8+
},
9+
"ignorePatterns": [
10+
"**/ts_out/*",
11+
"**/build/*",
12+
"**/node_modules/*",
13+
"bundle.js",
14+
"webpack.config.js"
15+
],
16+
"extends": [
17+
"eslint:recommended",
18+
"plugin:import/recommended",
19+
"plugin:import/typescript",
20+
"plugin:react/recommended",
21+
"plugin:@typescript-eslint/eslint-recommended",
22+
],
23+
"globals": {
24+
"Atomics": "readonly",
25+
"SharedArrayBuffer": "readonly"
26+
},
27+
"parserOptions": {
28+
"ecmaVersion": 11,
29+
"ecmaFeatures": {
30+
"legacyDecorators": true,
31+
"jsx": true
32+
},
33+
"sourceType": "module"
34+
},
35+
"plugins": [
36+
"react",
37+
"babel",
38+
"import",
39+
"@typescript-eslint"
40+
],
41+
"settings": {
42+
"react": {
43+
"version": "detect"
44+
},
45+
"import/resolver": {
46+
"webpack": {
47+
"config": "./webpack.config.js"
48+
}
49+
},
50+
"import/extensions": [
51+
".js",
52+
".jsx",
53+
".ts",
54+
".tsx"
55+
],
56+
"import/parsers": {
57+
"@typescript-eslint/parser": [
58+
".ts",
59+
".tsx"
60+
]
61+
},
62+
"import/core-modules": [
63+
"react-awesome-query-builder/lib/css/styles.css"
64+
]
65+
},
66+
"parser": "@typescript-eslint/parser",
67+
"rules": {
68+
"indent": [
69+
"error",
70+
2,
71+
{
72+
}
73+
],
74+
"linebreak-style": [
75+
"error",
76+
"unix"
77+
],
78+
"operator-linebreak": [
79+
"warn",
80+
"before"
81+
],
82+
"quotes": [
83+
"warn",
84+
"double",
85+
{
86+
"avoidEscape": true
87+
}
88+
],
89+
"semi": [
90+
"error",
91+
"always"
92+
],
93+
"no-tabs": [
94+
"error",
95+
{
96+
"allowIndentationTabs": false
97+
}
98+
],
99+
"no-unused-vars": [
100+
//todo: set to warn
101+
"off",
102+
{
103+
"args": "all",
104+
"argsIgnorePattern": "^_",
105+
"ignoreRestSiblings": true,
106+
"caughtErrors": "none",
107+
"varsIgnorePattern": "^_"
108+
}
109+
],
110+
"react/display-name": [
111+
"off"
112+
],
113+
"global-require": [
114+
"off"
115+
],
116+
"react/prop-types": [
117+
//todo: set to warn
118+
"off", {}
119+
],
120+
"prefer-const": [
121+
//todo: set to warn
122+
"off", {}
123+
]
124+
},
125+
"overrides": [
126+
{
127+
"files": ["modules/**/*.ts", "modules/**/*.tsx"],
128+
"parserOptions": {
129+
"project": 'tsconfig.json',
130+
},
131+
},
132+
{
133+
"files": ["examples/**/*.ts", "examples/**/*.tsx"],
134+
"parserOptions": {
135+
"project": 'examples/tsconfig.json',
136+
},
137+
},
138+
{
139+
"files": ["sandbox/**/*.ts", "sandbox/**/*.tsx"],
140+
"parserOptions": {
141+
"project": 'sandbox/tsconfig.json',
142+
},
143+
},
144+
{
145+
"files": ["tests/**/*.ts", "tests/**/*.tsx"],
146+
"parserOptions": {
147+
"project": 'tests/tsconfig.json',
148+
},
149+
},
150+
{
151+
"files": ["**/*.ts", "**/*.tsx"],
152+
"extends": [
153+
"eslint:recommended",
154+
"plugin:import/recommended",
155+
"plugin:import/typescript",
156+
"plugin:react/recommended",
157+
"plugin:@typescript-eslint/eslint-recommended",
158+
"plugin:@typescript-eslint/recommended",
159+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
160+
],
161+
"rules": {
162+
//todo
163+
"@typescript-eslint/no-unused-vars": 0,
164+
"@typescript-eslint/ban-types": 0,
165+
"@typescript-eslint/explicit-module-boundary-types": 0,
166+
"@typescript-eslint/no-explicit-any": 0,
167+
"@typescript-eslint/no-empty-interface": 0,
168+
"@typescript-eslint/unbound-method": 0,
169+
"@typescript-eslint/prefer-regexp-exec": 0
170+
}
171+
},
172+
],
173+
}

.eslintrc.json

Lines changed: 0 additions & 98 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
/examples/bundle.js
2-
/examples/bundle.js.map
1+
/examples/bundle.*
32
/build/
43
/coverage/
4+
/sandbox/build/
5+
/sandbox_simple/build/
6+
ts_out/
57
node_modules/
68
package-lock.json
79
npm-debug.log

.npmignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
/examples/bundle.js
2-
/examples/bundle.js.map
1+
/examples/bundle.*
32
/build/
43
/coverage/
4+
/sandbox/build/
5+
/sandbox_simple/build/
6+
ts_out/
57
node_modules/
68
package-lock.json
79
npm-debug.log

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
language: node_js
22
node_js:
3-
- 10
3+
- 12
44
sudo: required
55
dist: trusty
66
before_install:
77
# Fixes an issue where the max file watch count is exceeded, triggering ENOSPC
88
# https://stackoverflow.com/questions/22475849/node-js-error-enospc#32600959
99
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
1010
install:
11-
- npm install
11+
- npm run install-all
1212
- npm run lint
13-
- npm run build-examples
13+
- npm run build-all
14+
- npm run check-hot

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Changelog
2+
- 4.1.0
3+
- Fixed lint errors in code
4+
- Reorganized files in `tests`
5+
- Updated packages
6+
- Now minimum supported NodeJs is 12.13
7+
- Added TSC linting
8+
- Now ESLint checks types in TS files
9+
- Added new scripts: `install-all`, `clean`, `reinstall`, `build-all`, `check-hot`, `tsc`, `eslint`, `smoke`, `resmoke`.
10+
Renamed `sandbox_ts` to `sandbox-ts`, `sandbox_js` to `sandbox-js`.
11+
- Fixed problems with VSCode's TSLint plugin
12+
- Moved from deprecated `prepublish` to `prepare` in `package.json`
213
- 4.0.4
314
- Fixed issue #349 with drag-n-drop and office-ui-fabric-react
415
- Fixed issue #413 with func arg with 1 value source which is not value

0 commit comments

Comments
 (0)