Skip to content

Commit

Permalink
Lint - remove tmp package (#25815)
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri authored Oct 16, 2023
1 parent 7eaaae4 commit 891e8f7
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 61 deletions.
9 changes: 0 additions & 9 deletions js/__internal/.eslint-tmp-local-plugin/index.js

This file was deleted.

10 changes: 0 additions & 10 deletions js/__internal/.eslint-tmp-local-plugin/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions js/__internal/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ module.exports = {
},
plugins: [
'simple-import-sort',
// TODO Vinogradov: Move this plugin to this package:
// https://github.com/DevExpress/eslint-config-devextreme
// This custom plugin clones the @typescript-eslint/no-restricted-imports rule
// See issue: https://github.com/eslint/eslint/issues/14061
'forbidden-imports',
],
overrides: [
// General TS rules.
Expand All @@ -38,21 +33,6 @@ module.exports = {
}
],
'no-restricted-imports': 'off',
'forbidden-imports/no-restricted-imports': [
'error',
{
paths: [{
name: '@js/core/utils/iterator',
message: 'Please use @dom_utils/element_wrapper_iterator or native js methods instead.',
}],
patterns: [
{
group: ['../'],
message: 'Please try to avoid import of modules from upper directories.',
}
]
}
],
'@typescript-eslint/no-restricted-imports': [
'error',
{
Expand Down Expand Up @@ -141,7 +121,6 @@ module.exports = {
'@typescript-eslint/no-implied-eval': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/prefer-for-of': 'warn',
'forbidden-imports/no-restricted-imports': 'warn',
}
},
],
Expand Down
1 change: 0 additions & 1 deletion js/__internal/grids/grid_core/row_dragging/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import $ from '@js/core/renderer';

// eslint-disable-next-line @typescript-eslint/no-restricted-imports,
// eslint-disable-next-line forbidden-imports/no-restricted-imports
import gridCoreUtils from '../m_utils';
import { CLASSES } from './const';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-undef, forbidden-imports/no-restricted-imports */
/* eslint-disable no-undef */
import each from 'jest-each';

import {
Expand Down
18 changes: 0 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-devextreme": "1.1.3",
"eslint-plugin-forbidden-imports": "file:js/__internal/.eslint-tmp-local-plugin",
"eslint-plugin-i18n": "2.1.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.1",
Expand Down

0 comments on commit 891e8f7

Please sign in to comment.