New rules
This commit is contained in:
10
src/index.ts
10
src/index.ts
@ -167,13 +167,7 @@ export function extendConfig(of: InputConfig = {}): ESLintConfig {
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: [
|
||||
'.eslintrc.js',
|
||||
'*.config.js',
|
||||
'index.js',
|
||||
'babel.config.js',
|
||||
'next.config.js',
|
||||
],
|
||||
files: ['.eslintrc.js', '.eslintrc.cjs', '*.config.js', 'index.js'],
|
||||
extends: ['plugin:@typescript-eslint/disable-type-checked'],
|
||||
rules: {
|
||||
'rules/restrict-template-expressions': off,
|
||||
@ -186,7 +180,7 @@ export function extendConfig(of: InputConfig = {}): ESLintConfig {
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['repl.ts'],
|
||||
files: ['repl.ts', 'scripts/**/*.ts'],
|
||||
rules: {
|
||||
'no-console': off,
|
||||
},
|
||||
|
@ -42,7 +42,15 @@ export const eslintRules: Partial<EslintRules> = {
|
||||
'prefer-spread': warn,
|
||||
'quote-props': [error, 'as-needed'],
|
||||
'sort-imports': [warn, { ignoreDeclarationSort: true }],
|
||||
'spaced-comment': [error, 'always', { markers: ['/', '#', '@'] }],
|
||||
'spaced-comment': [
|
||||
error,
|
||||
'always',
|
||||
{
|
||||
markers: ['/', '#', '@'],
|
||||
// allow /*@__PURE__*/
|
||||
block: { exceptions: ['@'] },
|
||||
},
|
||||
],
|
||||
complexity: [warn, { max: 100 }],
|
||||
curly: [error, 'multi-line', 'consistent'],
|
||||
eqeqeq: [error, 'smart'],
|
||||
|
Reference in New Issue
Block a user