fix: 🐛 misc fixes
Fixed problems config not being exported and used in the presets and some rules not configured properly.
This commit is contained in:
@@ -11,6 +11,7 @@ import documentation from './documentation.js';
|
||||
import suggestions from './suggestions.js';
|
||||
import formatting from './formatting.js';
|
||||
import overrides from './overrides.js';
|
||||
import problems from './problems.js';
|
||||
import naming from './naming.js';
|
||||
import core from './core.js';
|
||||
|
||||
@@ -21,6 +22,7 @@ const configs = {
|
||||
formatting,
|
||||
naming,
|
||||
overrides,
|
||||
problems,
|
||||
suggestions,
|
||||
'suggestions-typescript': typescript,
|
||||
};
|
||||
|
||||
@@ -44,9 +44,10 @@ const recommended = createVariations({
|
||||
'no-irregular-whitespace': 'error',
|
||||
'no-misleading-character-class': 'error',
|
||||
'no-new-symbol': 'error',
|
||||
'no-nonoctal-decimal-escape': 'error',
|
||||
'no-obj-calls': 'error',
|
||||
'no-octal': 'error',
|
||||
'no-octal-decimal-escape': 'error',
|
||||
'no-octal-escape': 'error',
|
||||
'no-prototype-builtins': 'error',
|
||||
'no-regex-spaces': 'error',
|
||||
'no-self-assign': 'error',
|
||||
@@ -61,7 +62,6 @@ const recommended = createVariations({
|
||||
'no-unsafe-negation': 'error',
|
||||
'no-unsafe-optional-chaining': 'error',
|
||||
'no-unused-labels': 'error',
|
||||
'no-unused-vars': 'error',
|
||||
'no-useless-backreference': 'error',
|
||||
'use-isnan': 'error',
|
||||
'valid-typeof': 'error',
|
||||
@@ -69,8 +69,10 @@ const recommended = createVariations({
|
||||
...{}, // Plugin: @typescript-eslint/eslint-plugin
|
||||
'@typescript-eslint/no-loss-of-precision': 'error',
|
||||
'@typescript-eslint/no-redeclare': 'error',
|
||||
'@typescript-eslint/no-unused-vars': 'error',
|
||||
'no-loss-of-precision': 'off',
|
||||
'no-redeclare': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
|
||||
...{}, // Plugin: eslint-plugin-import
|
||||
'import/default': 'error',
|
||||
@@ -95,7 +97,6 @@ const strict = createVariations({
|
||||
'no-unmodified-loop-condition': 'error',
|
||||
'no-unreachable-loop': 'error',
|
||||
'no-unused-private-class-members': 'error',
|
||||
'no-use-before-define': 'error',
|
||||
'require-atomic-updates': 'error',
|
||||
|
||||
...{}, // Plugin: eslint-plugin-import
|
||||
|
||||
@@ -318,6 +318,7 @@ const strict = createVariations({
|
||||
'no-underscore-dangle': 'error',
|
||||
'no-unneeded-ternary': 'error',
|
||||
'no-unused-expressions': 'error',
|
||||
'no-use-before-define': 'error',
|
||||
'no-useless-call': 'error',
|
||||
'no-useless-rename': 'error',
|
||||
'no-useless-return': 'error',
|
||||
|
||||
@@ -12,8 +12,9 @@ import configs from '../configs/index.js';
|
||||
/** @type {import('eslint').Linter.FlatConfig[]} */
|
||||
const recommended = [
|
||||
configs.core,
|
||||
configs['suggestions-typescript'].recommended.error,
|
||||
configs.problems.recommended.error,
|
||||
configs.suggestions.recommended.error,
|
||||
configs['suggestions-typescript'].recommended.error,
|
||||
configs.formatting.recommended.error,
|
||||
configs.naming.recommended.error,
|
||||
configs.documentation.recommended.error,
|
||||
|
||||
@@ -12,8 +12,9 @@ import configs from '../configs/index.js';
|
||||
/** @type {import('eslint').Linter.FlatConfig[]} */
|
||||
const strict = [
|
||||
configs.core,
|
||||
configs['suggestions-typescript'].strict.error,
|
||||
configs.problems.strict.error,
|
||||
configs.suggestions.strict.error,
|
||||
configs['suggestions-typescript'].strict.error,
|
||||
configs.formatting.strict.error,
|
||||
configs.naming.strict.error,
|
||||
configs.documentation.recommended.error,
|
||||
|
||||
Reference in New Issue
Block a user