sandbox/eslint.config.mjs
Yongmin Hong 0f4b7c97e3
CI: add eslint
Summary:
Signed-off-by: Yongmin Hong <revi@omglol.email>

npm: use @revi/eslint-config

Also change eslint format, and publish `v0.0.2`.
Also prepare for eslint-config-wikimedia when they have eslint9 support.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run eslint`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D332
2024-06-16 15:50:44 +09:00

25 lines
668 B
JavaScript

//@ts-check
/**
* @file revi/sandbox eslint config
* @see https://eslint.org/docs/latest/use/configure/configuration-files
* @type {import("eslint").Linter.Config}
* @copyright Hong Yongmin 2024
* @license Apache-2.0
*/
import reviConfig from '@revi/eslint-config';
// import wikimedia from 'eslint-config-wikimedia';
export default [
...reviConfig,
// blocked by eslint9 support:
// https://github.com/wikimedia/eslint-config-wikimedia/issues/563
//{
// files: ['wikiassets/*.js'],
// plugins: {wikimedia},
// extends: ['wikimedia/client/es6', 'wikimedia/mediawiki'],
// languageOptions: {
// sourceType: 'script',
// },
//},
];