Skip to content

Commit

Permalink
remove unused lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Jan 5, 2022
1 parent 0eac2ea commit c61aefe
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 224 deletions.
43 changes: 2 additions & 41 deletions superset-frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/

const packageConfig = require('./package');

const importCoreModules = [];
Expand Down Expand Up @@ -52,12 +51,13 @@ module.exports = {
},
env: {
browser: true,
node: true,
},
settings: {
'import/resolver': {
webpack: {},
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
moduleDirectory: ['node_modules', '.'],
},
},
// Allow only core/src and core/test, avoid import modules from lib
Expand All @@ -69,24 +69,6 @@ module.exports = {
},
plugins: ['prettier', 'react', 'file-progress'],
overrides: [
{
files: ['cypress-base/**/*'],
rules: {
'import/no-unresolved': 0,
'global-require': 0,
},
},
{
files: ['webpack*.js'],
env: {
node: true,
},
settings: {
'import/resolver': {
node: {},
},
},
},
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
Expand Down Expand Up @@ -160,25 +142,13 @@ module.exports = {
},
settings: {
'import/resolver': {
webpack: {},
typescript: {},
},
react: {
version: 'detect',
},
},
},
{
files: ['*.stories.jsx', '*.stories.tsx'],
rules: {
// this is to keep eslint from complaining about storybook addons,
// since they are included as dev dependencies rather than direct dependencies.
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: true },
],
},
},
{
files: [
'*.test.ts',
Expand Down Expand Up @@ -221,15 +191,6 @@ module.exports = {
'jest-dom/prefer-to-have-style': 0,
},
},
{
files: './packages/generator-superset/**/*.test.*',
env: {
node: true,
},
rules: {
'jest/expect-expect': 0,
},
},
],
rules: {
camelcase: [
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ CHANGELOG.md
*.geojson
*-topo.json
temporary_superset_ui/
storybook-static/
1 change: 1 addition & 0 deletions superset-frontend/cypress-base/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// the project's config changing)

module.exports = (on, config) => {
// eslint-disable-next-line global-require
require('@cypress/code-coverage/task')(on, config);
return config;
};
Loading

0 comments on commit c61aefe

Please sign in to comment.