fix: 🐛 typescript-eslint missing formatting rules
This commit is contained in:
@@ -76,6 +76,10 @@ const recommended = {
|
||||
'@typescript-eslint/key-spacing': ['error', { afterColon: true, beforeColon: false }],
|
||||
'@typescript-eslint/keyword-spacing': ['error', { after: true, before: true }],
|
||||
'@typescript-eslint/lines-between-class-members': ['error'],
|
||||
'@typescript-eslint/member-delimiter-style': ['error', {
|
||||
multiline: { delimiter: 'comma', requireLast: true },
|
||||
singleline: { delimiter: 'comma', requireLast: true },
|
||||
}],
|
||||
'@typescript-eslint/no-extra-parens': ['error', 'functions'],
|
||||
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
|
||||
'@typescript-eslint/quotes': ['error', 'single'],
|
||||
@@ -87,6 +91,7 @@ const recommended = {
|
||||
named: 'never',
|
||||
}],
|
||||
'@typescript-eslint/space-infix-ops': 'error',
|
||||
'@typescript-eslint/type-annotation-spacing': ['error', { after: true, before: false }],
|
||||
'block-spacing': 'off',
|
||||
'brace-style': 'off',
|
||||
'comma-dangle': 'off',
|
||||
@@ -103,7 +108,7 @@ const recommended = {
|
||||
'space-before-function-paren': 'off',
|
||||
'space-infix-ops': 'off',
|
||||
|
||||
...{}, // Plugin: eslint-plugin-i (eslint-plugin-import)
|
||||
...{}, // Plugin: eslint-plugin-import
|
||||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
||||
'import/exports-last': 'error',
|
||||
'import/first': 'error',
|
||||
|
||||
46
configs/js/src/configs/index.d.ts
vendored
46
configs/js/src/configs/index.d.ts
vendored
@@ -1,37 +1,37 @@
|
||||
import type { Linter } from 'eslint';
|
||||
|
||||
const configs: Readonly<{
|
||||
core: Linter.FlatConfig
|
||||
core: Linter.FlatConfig,
|
||||
environments: {
|
||||
browser: {
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
node: {
|
||||
commonjs: Linter.FlatConfig
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
}
|
||||
commonjs: Linter.FlatConfig,
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
},
|
||||
formatting: {
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
naming: {
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
overrides: {
|
||||
performance: Linter.FlatConfig
|
||||
}
|
||||
performance: Linter.FlatConfig,
|
||||
},
|
||||
suggestions: {
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
'suggestions-typescript': {
|
||||
recommended: Linter.FlatConfig
|
||||
strict: Linter.FlatConfig
|
||||
}
|
||||
recommended: Linter.FlatConfig,
|
||||
strict: Linter.FlatConfig,
|
||||
},
|
||||
}>;
|
||||
|
||||
export default configs;
|
||||
|
||||
4
configs/js/src/index.d.ts
vendored
4
configs/js/src/index.d.ts
vendored
@@ -1,2 +1,2 @@
|
||||
export { default as presets } from './presets';
|
||||
export { default as configs } from './configs';
|
||||
export { default as presets } from './presets/index.d.ts';
|
||||
export { default as configs } from './configs/index.d.ts';
|
||||
|
||||
4
configs/js/src/presets/index.d.ts
vendored
4
configs/js/src/presets/index.d.ts
vendored
@@ -1,8 +1,8 @@
|
||||
import type { Linter } from 'eslint';
|
||||
|
||||
const presets: Readonly<{
|
||||
recommended: Linter.FlatConfig[]
|
||||
strict: Linter.FlatConfig[]
|
||||
recommended: Linter.FlatConfig[],
|
||||
strict: Linter.FlatConfig[],
|
||||
}>;
|
||||
|
||||
export default presets;
|
||||
|
||||
Reference in New Issue
Block a user