Skip to content

Commit

Permalink
Update dependencies (#409)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ukrbublik committed Jun 18, 2021
1 parent 2fab00c commit ce7d5e7
Show file tree
Hide file tree
Showing 63 changed files with 911 additions and 566 deletions.
17 changes: 10 additions & 7 deletions .babelrc
Expand Up @@ -5,19 +5,22 @@
"@babel/preset-react"
],
"plugins": [
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
["@babel/plugin-proposal-class-properties", {
"loose": true
}]
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }]
],
"env": {
"production": {
"compact": true,
"comments": false,
"minified": true
},
"test": {
"plugins": [
["istanbul", {
"exclude": [
"tests/**/*.test.js"
// exclude from karma reporter
"tests/**/*"
]
}]
]
Expand Down
173 changes: 173 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,173 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"mocha": true,
"jest": true,
"node": true
},
"ignorePatterns": [
"**/ts_out/*",
"**/build/*",
"**/node_modules/*",
"bundle.js",
"webpack.config.js"
],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11,
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"babel",
"import",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"webpack": {
"config": "./webpack.config.js"
}
},
"import/extensions": [
".js",
".jsx",
".ts",
".tsx"
],
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/core-modules": [
"react-awesome-query-builder/lib/css/styles.css"
]
},
"parser": "@typescript-eslint/parser",
"rules": {
"indent": [
"error",
2,
{
}
],
"linebreak-style": [
"error",
"unix"
],
"operator-linebreak": [
"warn",
"before"
],
"quotes": [
"warn",
"double",
{
"avoidEscape": true
}
],
"semi": [
"error",
"always"
],
"no-tabs": [
"error",
{
"allowIndentationTabs": false
}
],
"no-unused-vars": [
//todo: set to warn
"off",
{
"args": "all",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"caughtErrors": "none",
"varsIgnorePattern": "^_"
}
],
"react/display-name": [
"off"
],
"global-require": [
"off"
],
"react/prop-types": [
//todo: set to warn
"off", {}
],
"prefer-const": [
//todo: set to warn
"off", {}
]
},
"overrides": [
{
"files": ["modules/**/*.ts", "modules/**/*.tsx"],
"parserOptions": {
"project": 'tsconfig.json',
},
},
{
"files": ["examples/**/*.ts", "examples/**/*.tsx"],
"parserOptions": {
"project": 'examples/tsconfig.json',
},
},
{
"files": ["sandbox/**/*.ts", "sandbox/**/*.tsx"],
"parserOptions": {
"project": 'sandbox/tsconfig.json',
},
},
{
"files": ["tests/**/*.ts", "tests/**/*.tsx"],
"parserOptions": {
"project": 'tests/tsconfig.json',
},
},
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
//todo
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/prefer-regexp-exec": 0
}
},
],
}
98 changes: 0 additions & 98 deletions .eslintrc.json

This file was deleted.

6 changes: 4 additions & 2 deletions .gitignore
@@ -1,7 +1,9 @@
/examples/bundle.js
/examples/bundle.js.map
/examples/bundle.*
/build/
/coverage/
/sandbox/build/
/sandbox_simple/build/
ts_out/
node_modules/
package-lock.json
npm-debug.log
Expand Down
6 changes: 4 additions & 2 deletions .npmignore
@@ -1,7 +1,9 @@
/examples/bundle.js
/examples/bundle.js.map
/examples/bundle.*
/build/
/coverage/
/sandbox/build/
/sandbox_simple/build/
ts_out/
node_modules/
package-lock.json
npm-debug.log
Expand Down
7 changes: 4 additions & 3 deletions .travis.yml
@@ -1,13 +1,14 @@
language: node_js
node_js:
- 10
- 12
sudo: required
dist: trusty
before_install:
# Fixes an issue where the max file watch count is exceeded, triggering ENOSPC
# https://stackoverflow.com/questions/22475849/node-js-error-enospc#32600959
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
install:
- npm install
- npm run install-all
- npm run lint
- npm run build-examples
- npm run build-all
- npm run check-hot
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,15 @@
# Changelog
- 4.1.0
- Fixed lint errors in code
- Reorganized files in `tests`
- Updated packages
- Now minimum supported NodeJs is 12.13
- Added TSC linting
- Now ESLint checks types in TS files
- Added new scripts: `install-all`, `clean`, `reinstall`, `build-all`, `check-hot`, `tsc`, `eslint`, `smoke`, `resmoke`.
Renamed `sandbox_ts` to `sandbox-ts`, `sandbox_js` to `sandbox-js`.
- Fixed problems with VSCode's TSLint plugin
- Moved from deprecated `prepublish` to `prepare` in `package.json`
- 4.0.4
- Fixed issue #349 with drag-n-drop and office-ui-fabric-react
- Fixed issue #413 with func arg with 1 value source which is not value
Expand Down

0 comments on commit ce7d5e7

Please sign in to comment.