Skip to content

Commit

Permalink
fix: Ditch putout
Browse files Browse the repository at this point in the history
Got tired of putting up with it.
  • Loading branch information
gnarea committed Nov 26, 2024
1 parent 5218acb commit cb767c8
Show file tree
Hide file tree
Showing 3 changed files with 2,856 additions and 7,890 deletions.
34 changes: 0 additions & 34 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import stylisticTsPlugin from '@stylistic/eslint-plugin-ts';
import arrayFuncPlugin from 'eslint-plugin-array-func';
import perfectionistPlugin from 'eslint-plugin-perfectionist';
import promisePlugin from 'eslint-plugin-promise';
import putoutPlugin from 'eslint-plugin-putout/config';
import regexpPlugin from 'eslint-plugin-regexp';
import unicornPlugin from 'eslint-plugin-unicorn';

export default [
promisePlugin.configs['flat/recommended'],
unicornPlugin.configs['flat/recommended'],
arrayFuncPlugin.configs.all,
...putoutPlugin.recommended,
perfectionistPlugin.configs['recommended-natural'],
regexpPlugin.configs['flat/recommended'],
{
Expand Down Expand Up @@ -358,30 +356,6 @@ export default [
],
'perfectionist/sort-objects': ['error', { partitionByNewLine: true }],

'putout/align-spaces': 'off',
'putout/function-declaration-paren-newline': 'off',
'putout/keyword-spacing': 'off',
'putout/long-properties-destructuring': 'off',
'putout/multiple-properties-destructuring': 'off',
'putout/objects-braces-inside-array': 'off',
'putout/putout': [
'error',
{
rules: {
'conditions/apply-consistent-blocks': 'off',
'conditions/remove-zero': 'off',
'conditions/remove-zero-conditions': 'off',
'convert-array-copy-to-slice': 'off',
'new/remove-useless': 'off',
'nodejs/declare': 'off',
'remove-useless-constructor': 'off',
'try-catch/async': 'off',
},
},
],
'putout/remove-empty-newline-after-import': 'off',
'putout/single-property-destructuring': 'off',

'unicorn/filename-case': [
'error',
{
Expand All @@ -402,12 +376,4 @@ export default [
'@stylistic/ts/object-curly-spacing': ['error', 'always'],
},
},

{
files: ['package.json'],
rules: {
// Silence error about using 'plugin:putout/esm' as it doesn't work with ESLint flat configs
'putout/putout': 'off',
},
},
];
Loading

0 comments on commit cb767c8

Please sign in to comment.