Skip to content

Commit

Permalink
chore: cleanup eslint flat config (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Aug 10, 2024
1 parent d5e6124 commit 1b9ed34
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: [
'**/*.js',
'**/*.mjs',
'**/*.{js,mjs}',
'**/*/*.d.ts',
'**/dist',
'**/__tests__/*',
'**/dist',
],
},
{
Expand All @@ -20,17 +19,14 @@ export default tseslint.config(
...tseslint.configs.recommended,
],
plugins: {
'@typescript-eslint': tseslint.plugin,
cypress,
n
},
files: ['**/*.ts'],

languageOptions: {
globals: {
...globals.es2021,
...globals.node,
Sortable: true,
...globals.browser,
},
parser: tseslint.parser,
parserOptions: {
Expand Down Expand Up @@ -58,19 +54,13 @@ export default tseslint.config(
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_', 'destructuredArrayIgnorePattern': '^_', caughtErrors: 'none' }],
'curly': 'error',
'cypress/no-assigning-return-values': 'off',
'cypress/no-unnecessary-waiting': 'off',
'cypress/unsafe-to-chain-command': 'off',
'eqeqeq': 'error',
'object-shorthand': 'error',
'no-async-promise-executor': 'off',
'no-case-declarations': 'off',
'no-cond-assign': 'off',
'no-prototype-builtins': [0],
'no-prototype-builtins': 'off',
'no-extra-boolean-cast': 'off',
'semi': 'off',
'keyword-spacing': 'error',
'space-before-blocks': 'error'
}
});

0 comments on commit 1b9ed34

Please sign in to comment.