From c44104fe3ccb0b14c2cf4d736c5a979e7b66b482 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 9 Oct 2020 23:41:19 +0300 Subject: [PATCH] Cleanup '__fixtures__' leftovers (#2818) --- .babelrc.json | 6 +----- .eslintrc.yml | 4 +--- .flowconfig | 1 - src/language/__tests__/lexer-test.js | 1 + src/language/__tests__/parser-test.js | 1 + 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.babelrc.json b/.babelrc.json index cb216333ff..8c98e626b2 100644 --- a/.babelrc.json +++ b/.babelrc.json @@ -3,11 +3,7 @@ "plugins": ["@babel/plugin-transform-flow-strip-types"], "overrides": [ { - "exclude": [ - "src/__testUtils__/**/*", - "**/__tests__/**/*", - "**/__fixtures__/**/*" - ], + "exclude": ["src/__testUtils__/**/*", "**/__tests__/**/*"], "presets": ["@babel/preset-env"], "plugins": [ ["@babel/plugin-transform-classes", { "loose": true }], diff --git a/.eslintrc.yml b/.eslintrc.yml index 52982f6151..e5fedf97ae 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -97,7 +97,6 @@ rules: - basePath: './' zones: - { target: './src', from: 'src/__testUtils__' } - - { target: './src', from: 'src/__fixtures__' } import/no-absolute-path: error import/no-dynamic-require: error import/no-internal-modules: off @@ -657,10 +656,9 @@ overrides: '@typescript-eslint/type-annotation-spacing': off - files: 'src/**/__*__/**' rules: - node/no-unpublished-import: off + node/no-unpublished-import: [error, { allowModules: ['chai', 'mocha'] }] import/no-restricted-paths: off import/no-extraneous-dependencies: [error, { devDependencies: true }] - import/no-nodejs-modules: off # TODO remove no-restricted-syntax: off - files: 'integrationTests/*' rules: diff --git a/.flowconfig b/.flowconfig index 3c74bdbdd5..e8eedd1504 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,7 +1,6 @@ [ignore] .* !/src -/src/__fixtures__/github-schema.json [include] diff --git a/src/language/__tests__/lexer-test.js b/src/language/__tests__/lexer-test.js index 0b1cf908ec..2aba2d8b78 100644 --- a/src/language/__tests__/lexer-test.js +++ b/src/language/__tests__/lexer-test.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line import/no-nodejs-modules import { inspect as nodeInspect } from 'util'; import { expect } from 'chai'; diff --git a/src/language/__tests__/parser-test.js b/src/language/__tests__/parser-test.js index 79c0795020..9b9c91f387 100644 --- a/src/language/__tests__/parser-test.js +++ b/src/language/__tests__/parser-test.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line import/no-nodejs-modules import { inspect as nodeInspect } from 'util'; import { expect } from 'chai';