Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: drop support for Node 16, update linter, add JSDoc linting #704

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: drop support for Node 16, update linter, add JSDoc linting
Signed-off-by: Dan Hudlow <[email protected]>
  • Loading branch information
hudlow committed Dec 12, 2024
commit 5bed9f89a82d9c06b0f977abba3086494a10777c
28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

55 changes: 55 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
const globals = require('globals');
const eslint = require('@eslint/js').configs.recommended;
const prettier = require('eslint-plugin-prettier/recommended');
const jsdoc = require('eslint-plugin-jsdoc').configs['flat/recommended'];
const jest = require('eslint-plugin-jest').configs['flat/recommended'];

module.exports = [
{
...jsdoc,
files: ['packages/utilities/**/*.js'],
ignores: ['**/*.test.js'],
},
{
...eslint,
files: ['**/*.js'],
ignores: ['**/*.test.js'],
},
{
...jest,
files: ['**/*.test.js'],
},
{
...prettier,
files: ['**/*.js'],
ignores: ['**/*.test.js'],
languageOptions: {
ecmaVersion: 13,
globals: {
...globals.node,
mocha: true,
jest: true,
AggregateError: 'readonly',
},
},
rules: {
...prettier.rules,
'prettier/prettier': [
'error',
{
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'es5',
},
],
},
},
{
rules: {
'jsdoc/require-returns-description': 'off',
'no-console': 0,
'no-var': 'error',
'prefer-const': 'error',
},
},
];
Loading