forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 4
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 (apache#768)
1. move translation, connection, query to core (apache#729) 2. update encodable to remove formatter inter-dependency (apache#744) 3. move number-format and time-format to core (apache#730) 4. move superset-ui/dimension to core (apache#732) 5. move superset-ui/color to core (apache#755) 6. move superset-ui/style to core (apache#756) 7. move superset-ui/validator to core (apache#757) 8. move superset-ui/chart-composition to core (apache#759) 9. move superset-ui/chart to core (apache#760)
- Loading branch information
1 parent
68c5beb
commit 415ce5e
Showing
695 changed files
with
3,212 additions
and
4,237 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
superset-frontend/temporary_superset_ui/superset-ui/.eslintignore
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/ |
69 changes: 69 additions & 0 deletions
69
superset-frontend/temporary_superset_ui/superset-ui/.eslintrc.js
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, | ||
}, | ||
}, | ||
], | ||
}; |
5 changes: 5 additions & 0 deletions
5
superset-frontend/temporary_superset_ui/superset-ui/.esprintrc
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
14 changes: 14 additions & 0 deletions
14
superset-frontend/temporary_superset_ui/superset-ui/.prettierignore
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,14 @@ | ||
coverage/ | ||
node_modules/ | ||
public/ | ||
esm/ | ||
lib/ | ||
tmp/ | ||
dist/ | ||
lerna.json | ||
npm-shrinkwrap.json | ||
package-lock.json | ||
tsconfig.json | ||
tsconfig.options.json | ||
tsconfig.eslint.json | ||
CHANGELOG.md |
13 changes: 13 additions & 0 deletions
13
superset-frontend/temporary_superset_ui/superset-ui/.prettierrc
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
83 changes: 83 additions & 0 deletions
83
superset-frontend/temporary_superset_ui/superset-ui/jest.config.js
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.