-
Notifications
You must be signed in to change notification settings - Fork 11
/
eslint.config.js
31 lines (31 loc) · 1.14 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// https://eslint.org/docs/latest
import js from "@eslint/js";
import globals from "globals";
import mochaPlugin from 'eslint-plugin-mocha'; // https://www.npmjs.com/package/eslint-plugin-mocha
import stylisticJs from '@stylistic/eslint-plugin-js'
export default [
js.configs.recommended, // Recommended config applied to all files
mochaPlugin.configs.flat.recommended, // or `mochaPlugin.configs.flat.all` to enable all
{
"files": ["lib/**/*.js", "examples/**/*.js", "tests/**/*.js"],
"languageOptions": {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
"process": true
},
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
},
plugins: {
'@stylistic/js': stylisticJs
},
"rules": {
"mocha/no-mocha-arrows": "off", /* pff */
'@stylistic/js/no-extra-semi': "error", /* to match houndci : https://eslint.org/docs/latest/rules/no-extra-semi */
}
}
];