Skip to content

Commit 9841e97

Browse files
committed
[eslint] enable and autofix import/newline-after-import
1 parent 2508066 commit 9841e97

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
"import/order": 1,
2828
"no-useless-escape": 1,
29-
"import/newline-after-import": 1,
3029
"operator-linebreak": 1,
3130
"function-paren-newline": 0,
3231
"no-plusplus": 1,

tests/lib/rules/jsx-closing-bracket-location.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
const rule = require('../../../lib/rules/jsx-closing-bracket-location');
1313
const RuleTester = require('eslint').RuleTester;
14+
1415
const parserOptions = {
1516
ecmaVersion: 2018,
1617
sourceType: 'module',

tests/lib/rules/jsx-no-undef.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
const eslint = require('eslint');
1313
const rule = require('../../../lib/rules/jsx-no-undef');
14+
1415
const RuleTester = eslint.RuleTester;
1516

1617
const parsers = require('../../helpers/parsers');
@@ -29,6 +30,7 @@ const parserOptions = {
2930
const ruleTester = new RuleTester({parserOptions});
3031
const linter = ruleTester.linter || eslint.linter;
3132
linter.defineRule('no-undef', require('eslint/lib/rules/no-undef'));
33+
3234
ruleTester.run('jsx-no-undef', rule, {
3335
valid: [{
3436
code: '/*eslint no-undef:1*/ var React, App; React.render(<App />);'

tests/lib/rules/jsx-uses-react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
const eslint = require('eslint');
1313
const rule = require('eslint/lib/rules/no-unused-vars');
14+
1415
const RuleTester = eslint.RuleTester;
1516

1617
const parsers = require('../../helpers/parsers');
@@ -36,6 +37,7 @@ const settings = {
3637
const ruleTester = new RuleTester({parserOptions});
3738
const linter = ruleTester.linter || eslint.linter;
3839
linter.defineRule('jsx-uses-react', require('../../../lib/rules/jsx-uses-react'));
40+
3941
ruleTester.run('no-unused-vars', rule, {
4042
valid: [
4143
{code: '/*eslint jsx-uses-react:1*/ var React; <div />;'},

tests/lib/rules/jsx-uses-vars.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
const eslint = require('eslint');
1313
const ruleNoUnusedVars = require('eslint/lib/rules/no-unused-vars');
1414
const rulePreferConst = require('eslint/lib/rules/prefer-const');
15+
1516
const RuleTester = eslint.RuleTester;
1617

1718
const parsers = require('../../helpers/parsers');
@@ -31,6 +32,7 @@ const parserOptions = {
3132
const ruleTester = new RuleTester({parserOptions});
3233
const linter = ruleTester.linter || eslint.linter;
3334
linter.defineRule('jsx-uses-vars', require('../../../lib/rules/jsx-uses-vars'));
35+
3436
ruleTester.run('no-unused-vars', ruleNoUnusedVars, {
3537
valid: [
3638
{

0 commit comments

Comments
 (0)