Remove import
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { error, warn, off } from '../constants';
|
||||
import { EslintRules } from 'eslint-define-config/src/rules/eslint';
|
||||
import { EslintRulesObject } from '@aet/eslint-define-config/src/rules/eslint';
|
||||
import restrictedGlobals from './_restrictedGlobals.json';
|
||||
|
||||
export const eslintRules: Partial<EslintRules> = {
|
||||
export const eslintRules: Partial<EslintRulesObject> = {
|
||||
'arrow-body-style': [error, 'as-needed'],
|
||||
'class-methods-use-this': off,
|
||||
'func-style': [error, 'declaration', { allowArrowFunctions: true }],
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { GraphQLRules } from 'eslint-define-config/src/rules/graphql-eslint';
|
||||
import { GraphQLRulesObject } from '@aet/eslint-define-config/src/rules/graphql-eslint';
|
||||
|
||||
// https://the-guild.dev/graphql/eslint/rules
|
||||
export const graphqlRules: Partial<GraphQLRules> = {};
|
||||
export const graphqlRules: Partial<GraphQLRulesObject> = {};
|
||||
|
8
src/presets/import-x.ts
Normal file
8
src/presets/import-x.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { error, off } from '../constants';
|
||||
import { ImportXRulesObject } from '@aet/eslint-define-config/src/rules/import-x';
|
||||
|
||||
export const importRules: Partial<ImportXRulesObject> = {
|
||||
'import-x/export': off,
|
||||
'import-x/no-duplicates': error,
|
||||
'import-x/order': [error, { groups: ['builtin', 'external'] }],
|
||||
};
|
@ -1,8 +0,0 @@
|
||||
import { error, off } from '../constants';
|
||||
import { ImportRules } from 'eslint-define-config/src/rules/import';
|
||||
|
||||
export const importRules: Partial<ImportRules> = {
|
||||
'import/export': off,
|
||||
'import/no-duplicates': error,
|
||||
'import/order': [error, { groups: ['builtin', 'external'] }],
|
||||
};
|
@ -1,3 +1,3 @@
|
||||
import { JSDocRules } from 'eslint-define-config/src/rules/jsdoc';
|
||||
import { JSDocRulesObject } from '@aet/eslint-define-config/src/rules/jsdoc';
|
||||
|
||||
export const jsDocRules: Partial<JSDocRules> = {};
|
||||
export const jsDocRules: Partial<JSDocRulesObject> = {};
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { error, off } from '../constants';
|
||||
import { ReactRules } from 'eslint-define-config/src/rules/react';
|
||||
import { ReactRulesObject } from '@aet/eslint-define-config/src/rules/react';
|
||||
|
||||
export const reactRules: Partial<ReactRules> = {
|
||||
export const reactRules: Partial<ReactRulesObject> = {
|
||||
'react/display-name': off,
|
||||
'react/no-children-prop': error,
|
||||
'react/prop-types': off,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { error, off, warn } from '../constants';
|
||||
import type { TypeScriptRules } from 'eslint-define-config/src/rules/typescript-eslint';
|
||||
import type { TypeScriptRulesObject } from '@aet/eslint-define-config/src/rules/typescript-eslint';
|
||||
|
||||
export const typescriptRules: Partial<TypeScriptRules> = {
|
||||
export const typescriptRules: Partial<TypeScriptRulesObject> = {
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
error,
|
||||
{
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { error, warn } from '../constants';
|
||||
import { UnicornRules } from 'eslint-define-config/src/rules/unicorn';
|
||||
import { UnicornRulesObject } from '@aet/eslint-define-config/src/rules/unicorn';
|
||||
|
||||
const suggest = (suggest: string) => ({ suggest, fix: false });
|
||||
|
||||
// https://github.com/sindresorhus/eslint-plugin-unicorn/tree/28e7498ad06679bb92343db53bb40a7b5ba2990a
|
||||
export const unicornRules: Partial<UnicornRules> = {
|
||||
export const unicornRules: Partial<UnicornRulesObject> = {
|
||||
'unicorn/better-regex': error,
|
||||
'unicorn/consistent-function-scoping': warn,
|
||||
'unicorn/escape-case': error,
|
||||
|
Reference in New Issue
Block a user