Skip to content

Commit

Permalink
Update ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Jan 28, 2024
1 parent c10c45c commit 0583551
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 157 deletions.
20 changes: 5 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use strict';

const { createFlatConfig } = require('@origin-1/eslint-config');
const eslintPluginEslintComments = require('eslint-plugin-eslint-comments');
const eslintPluginTsdoc = require('eslint-plugin-tsdoc');
const globals = require('globals');
const { createConfig } = require('@origin-1/eslint-config');
const eslintPluginTsdoc = require('eslint-plugin-tsdoc');
const globals = require('globals');

module.exports =
createFlatConfig
createConfig
(
{
ignores: ['**/.*', 'coverage', 'example/demo'],
Expand All @@ -29,15 +28,6 @@ createFlatConfig
},
{
languageOptions: { globals: globals.node },
plugins: { 'eslint-comments': eslintPluginEslintComments },
rules:
{
'no-throw-literal': 'off',
'eslint-comments/disable-enable-pair': 'error',
'eslint-comments/no-aggregating-enable': 'error',
'eslint-comments/no-duplicate-disable': 'error',
'eslint-comments/no-unlimited-disable': 'error',
'eslint-comments/no-unused-enable': 'error',
},
rules: { 'no-throw-literal': 'off' },
},
);
Loading

0 comments on commit 0583551

Please sign in to comment.