This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: merge core superset-ui packages
1. move translation, connection, query to core (#729) 2. update encodable to remove formatter inter-dependency (#744) 3. move number-format and time-format to core (#730)
- Loading branch information
Showing
443 changed files
with
3,151 additions
and
1,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
coverage/ | ||
node_modules/ | ||
public/ | ||
esm/ | ||
lib/ | ||
tmp/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
extends: [ | ||
'./node_modules/@airbnb/config-eslint/lib/presets/base.js', | ||
'./node_modules/@airbnb/config-eslint/lib/presets/next.js', | ||
'./node_modules/@airbnb/config-eslint/lib/presets/typescript.js', | ||
'./node_modules/@airbnb/config-eslint/lib/presets/prettier.js', | ||
'prettier/@typescript-eslint', | ||
'prettier/unicorn', | ||
], | ||
parserOptions: { | ||
project: path.join(__dirname, './tsconfig.eslint.json'), | ||
}, | ||
rules: { | ||
'arrow-parens': ['warn', 'as-needed'], | ||
}, | ||
overrides: [ | ||
{ | ||
files: '**/*.d.ts', | ||
rules: { | ||
'max-classes-per-file': 0, | ||
}, | ||
}, | ||
{ | ||
files: './packages/generator-superset/**/*.test.{js,jsx,ts,tsx}', | ||
rules: { | ||
'jest/expect-expect': 0, | ||
}, | ||
}, | ||
{ | ||
files: '**/test/**/*', | ||
rules: { | ||
'import/no-extraneous-dependencies': 0, | ||
'promise/param-names': 0, | ||
'jest/require-to-throw-message': 0, | ||
'jest/no-test-return-statement': 0, | ||
'jest/no-expect-resolves': 0, | ||
'@typescript-eslint/no-require-imports': 0, | ||
'global-require': 0, | ||
}, | ||
}, | ||
{ | ||
files: '*.{js,jsx,ts,tsx}', | ||
rules: { | ||
'import/extensions': 0, | ||
'no-plusplus': 0, | ||
'react/jsx-no-literals': 0, | ||
'@typescript-eslint/no-unsafe-member-access': 0, | ||
'@typescript-eslint/no-unsafe-call': 0, | ||
'@typescript-eslint/no-explicit-any': [ | ||
'warn', | ||
{ | ||
fixToUnknown: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ['./scripts/*', './*.config.js'], | ||
rules: { | ||
'no-console': 0, | ||
}, | ||
env: { | ||
node: true, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"paths": ["{packages,plugins}/*/{src,test,types}/**/*.{ts,tsx,js,jsx}"], | ||
"ignores": ["**/node_modules/**/*"], | ||
"port": 5004 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
coverage/ | ||
node_modules/ | ||
public/ | ||
esm/ | ||
lib/ | ||
tmp/ | ||
dist/ | ||
lerna.json | ||
npm-shrinkwrap.json | ||
package.json | ||
package-lock.json | ||
tsconfig.json | ||
tsconfig.options.json | ||
tsconfig.eslint.json | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"printWidth": 100, | ||
"proseWrap": "always", | ||
"requirePragma": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
module.exports = { | ||
"bail": false, | ||
"collectCoverageFrom": [ | ||
"**/src/**/*.{ts,tsx,js,jsx}", | ||
"**/test/**/*.{ts,tsx,js,jsx}" | ||
], | ||
"coverageDirectory": "./coverage", | ||
"coveragePathIgnorePatterns": [ | ||
"coverage/", | ||
"node_modules/", | ||
"public/", | ||
"esm/", | ||
"lib/", | ||
"tmp/", | ||
"dist/" | ||
], | ||
"coverageReporters": [ | ||
"lcov", | ||
"json-summary", | ||
"html" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 0, | ||
"functions": 0, | ||
"lines": 0, | ||
"statements": 0 | ||
} | ||
}, | ||
"globals": { | ||
"__DEV__": true, | ||
"caches": true | ||
}, | ||
"moduleFileExtensions": [ | ||
"mock.js", | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"moduleNameMapper": { | ||
"^.+\\.(ttf|eot|otf|svg|woff|woff2|mp3|png|jpg|jpeg|gif|ico)$": "<rootDir>/node_modules/@airbnb/config-jest/mocks/file.js", | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", | ||
"\\.(css|less)$": "identity-obj-proxy" | ||
}, | ||
"roots": [ | ||
"<rootDir>/packages", | ||
"<rootDir>/plugins" | ||
], | ||
"setupFiles": [ | ||
"<rootDir>/node_modules/@airbnb/config-jest/setup/shims.js", | ||
"<rootDir>/node_modules/@airbnb/config-jest/setup/console.js", | ||
"<rootDir>/node_modules/@airbnb/config-jest/setup/dom.js" | ||
], | ||
"setupFilesAfterEnv": [ | ||
"<rootDir>/node_modules/@airbnb/config-jest/bootstrap/react.js", | ||
"<rootDir>/node_modules/@airbnb/config-jest/bootstrap/consumer.js", | ||
"@airbnb/config-jest/enzyme" | ||
], | ||
"testEnvironment": "jsdom", | ||
"testURL": "http://localhost", | ||
"timers": "real", | ||
"verbose": false, | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!(vega-lite|lodash-es))" | ||
], | ||
"testPathIgnorePatterns": [ | ||
"packages/generator-superset/generators" | ||
], | ||
"projects": [ | ||
"<rootDir>", | ||
{ | ||
"displayName": "node", | ||
"rootDir": "<rootDir>/packages/generator-superset", | ||
"testMatch": [ | ||
"<rootDir>/test/**/?(*.)+(spec|test).{js,jsx,ts,tsx}" | ||
], | ||
"testEnvironment": "node" | ||
} | ||
] | ||
}; |
Oops, something went wrong.