Skip to content

Commit c6b812d

Browse files
authored
chore: remove lint exceptions for files in examples folder (#13346)
1 parent aae0d3a commit c6b812d

File tree

19 files changed

+17
-36
lines changed

19 files changed

+17
-36
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ module.exports = {
216216
{
217217
files: ['examples/**/*'],
218218
rules: {
219-
'import/no-unresolved': ['error', {ignore: ['^react-native$']}],
220-
'import/order': 'off',
219+
'no-restricted-imports': 'off',
221220
},
222221
},
223222
{

examples/angular/app.component.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
22
import {describe, expect, it, jest} from '@jest/globals';
3-
43
import {AppComponent} from './app.component';
54
import {DataService} from './shared/data.service';
65

examples/angular/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {Component} from '@angular/core';
2-
32
import {DataService} from './shared/data.service';
43

54
@Component({

examples/angular/app.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {NgModule} from '@angular/core';
22
import {BrowserModule} from '@angular/platform-browser';
3-
43
import {AppComponent} from './app.component';
54

65
@NgModule({

examples/angular/shared/data.service.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {TestBed} from '@angular/core/testing';
22
import {beforeEach, describe, expect, it, jest} from '@jest/globals';
3-
43
import {DataService} from './data.service';
54
import {SubService} from './sub.service';
65

examples/angular/shared/data.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {Injectable} from '@angular/core';
2-
32
import {SubService} from './sub.service';
43

54
@Injectable()

examples/angular/shared/sub.service.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {TestBed} from '@angular/core/testing';
22
import {beforeEach, describe, expect, it} from '@jest/globals';
3-
43
import {SubService} from './sub.service';
54

65
describe('Service: SubService', () => {

examples/enzyme/__tests__/CheckboxWithLabel-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import Enzyme, {shallow} from 'enzyme';
44
import Adapter from 'enzyme-adapter-react-16';
5+
import CheckboxWithLabel from '../CheckboxWithLabel';
56

67
Enzyme.configure({adapter: new Adapter()});
78

8-
import CheckboxWithLabel from '../CheckboxWithLabel';
9-
109
it('CheckboxWithLabel changes the text after click', () => {
1110
// Render a checkbox with label in the document
1211
const checkbox = shallow(<CheckboxWithLabel labelOn="On" labelOff="Off" />);

examples/mongodb/mongo-environment.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
// mongo-environment.js
2-
const NodeEnvironment = require('jest-environment-node').default;
3-
4-
const path = require('path');
5-
6-
const fs = require('fs');
1+
import fs from 'fs';
2+
import path from 'path';
3+
import NodeEnvironment from 'jest-environment-node';
74

85
const globalConfigPath = path.join(__dirname, 'globalConfig.json');
96

examples/mongodb/setup.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
// setup.js
2-
const path = require('path');
3-
4-
const fs = require('fs');
5-
6-
const {MongoMemoryServer} = require('mongodb-memory-server');
1+
import fs from 'fs';
2+
import path from 'path';
3+
import {MongoMemoryServer} from 'mongodb-memory-server';
74

85
const globalConfigPath = path.join(__dirname, 'globalConfig.json');
96

0 commit comments

Comments
 (0)